Design Tools
Colour Palette Generator
Turn one base colour into a 50–900 tint and shade scale or a complementary, analogous, triadic, split or square scheme, exported as CSS, SCSS or Tailwind code.
How to use Colour Palette Generator
Enter a base colour or pick one, choose a palette type and a code format, and set a variable name prefix. Swatches, paste-ready code and a table of HEX, RGB, HSL and contrast values update instantly.
- Set the base colourType HEX, rgb(), hsl() or a colour name, or use the picker. Any transparency is ignored.
- Choose a palette typeTints and shades gives ten steps from 50 to 900; the other options rotate the hue around the colour wheel.
- Export the codePick CSS custom properties, SCSS variables, a Tailwind colour config or a plain HEX list, and set the prefix.
How the 50–900 scale is built
The base colour becomes step 500. Hue and saturation stay fixed while lightness moves towards about 97% for the tints 50 to 400 and towards about 12% for the shades 600 to 900, in uneven steps so the light end stays usable. With #1a73e8 the scale runs 50 #e0ecfc, 100 #c6dcf9, 300 #74aaf1, 500 #1a73e8, 700 #1153aa and 900 #0b346a, output as --brand-50 to --brand-900. The table lists each step's contrast on white and on black, so you can see at a glance which steps work for text and which suit backgrounds.
Colour wheel schemes
Complementary rotates the hue by 180°, so #1a73e8 pairs with #e88f1a. Analogous takes 30° either side (#1adae8 and #281ae8), triadic adds 120° and 240° (#e81a73 and #73e81a), split complementary uses 150° and 210°, and square adds 90°, 180° and 270°. Monochromatic keeps the hue and moves lightness 15 and 30 points each way. Saturation and lightness are kept for the rotated colours, so they share the same intensity. A near-grey base has no hue to rotate, so the tool warns you and suggests tints and shades instead.
Accuracy and data handling
Review colours, dimensions and visual settings in the real component, type size and target display. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
How do I use the palette in Tailwind?
Choose Tailwind colour config and paste the block into theme.extend.colors in tailwind.config.js. With the prefix brand and the 50–900 scale you can then use classes such as bg-brand-500 or text-brand-900.
Can I start from an RGB value or a colour name?
Yes. The base colour accepts HEX, rgb(), hsl(), hwb() or CSS names such as tomato. Any alpha value is ignored because the palette only produces solid colours.
Why does my complementary colour differ from other apps?
Hues here are rotated on the HSL colour wheel used by CSS. Some design apps default to the painter's red-yellow-blue wheel, where the complement of a blue lands on a different orange.
More Design Tools
Related toolsGet the WCAG contrast ratio, AA and AAA results and the nearest passing text colour.
Convert HEX to RGB and RGB to HEX, one colour or up to 200 at a time.
Reduce sizes to a ratio, resize proportionally and get CSS aspect-ratio code.
Design a CSS box-shadow with offsets, blur, spread, opacity and inset, previewed live.
Round each corner separately and get the shortest CSS border-radius shorthand.
Calculate PPI, pixel pitch and physical size from a screen's resolution and diagonal.