DEV Community

James Miller
James Miller

Posted on

How I Create Tailwind Color Scales from One HEX Color

When I start a new UI project, I usually begin with one main brand color. The difficult part is turning that single color into a full scale that works for backgrounds, borders, cards, buttons, hover states, and text.

For Tailwind projects, this is where a Tailwind color generator is useful. It helps create a 50–950 color scale from one HEX color, so the final shades feel more consistent inside a design system.

My simple workflow is:

  1. Pick one base HEX color.
  2. Generate lighter and darker shades.
  3. Test the shades on buttons, cards, and backgrounds.
  4. Use darker shades for hover states.
  5. Keep the final palette limited and reusable.

This saves time because I do not have to manually guess every shade. It also makes the UI feel more consistent across pages.

Top comments (0)