Equally important to culture is purpose.

If people genuinely believe their work furthers a purpose they believe in, it's very hard for another company to compete with better perks or salary alone.

As web developers, one of the best purposes we can strive for is making the web better. At least one WordPress company, with famously low attrition, understands that: http://cl.ly/image/1C2x083d0r1K