Colour Palette Generator
Turn one colour into a full palette. Pick a base colour and a harmony (analogous, complementary, split complementary, triadic, square, monochromatic or a light-to-dark scale) and get the HEX, RGB and HSL codes, how readable white or black text is on each colour, and the palette as CSS variables or a PNG image.
Neighbours on the colour wheel (30° apart): calm and harmonious.
- #1eff8d
rgb(30, 255, 141)
hsl(149.6, 100%, 55.9%)
White text 1.33:1
Black text 15.74:1 (AA) - #1efffe
rgb(30, 255, 254)
hsl(179.7, 100%, 55.9%)
White text 1.25:1
Black text 16.79:1 (AA) - #1e90ff
rgb(30, 144, 255)
hsl(209.6, 100%, 55.9%)
White text 3.24:1
Black text 6.49:1 (AA) - #1e1fff
rgb(30, 31, 255)
hsl(239.7, 100%, 55.9%)
White text 7.79:1 (AA)
Black text 2.70:1 - #8d1eff
rgb(141, 30, 255)
hsl(269.6, 100%, 55.9%)
White text 5.58:1 (AA)
Black text 3.76:1
Contrast figures use the WCAG 2.2 formula. AA asks for at least 4.5:1 for normal text and 3:1 for large text. Harmonies are worked out on the screen (RGB/HSL) colour wheel, so a painter's wheel may suggest different partners.
About the colour palette generator
Choosing colours that work together is easier with a rule to start from. Designers have long used colour harmonies: fixed angles around a colour wheel that tend to look balanced. This generator applies those rules to any colour you give it and lays out the result as swatches you can copy straight into a website, slide deck or brand sheet.
The palette types
- Analogous: the base plus its neighbours 30° and 60° either side. Calm, natural, good for backgrounds.
- Complementary: the base, its opposite at 180°, and lighter and darker versions. High energy; use the opposite sparingly for buttons or highlights.
- Split complementary: the base and the two hues next to its opposite, softer than a straight complement.
- Triadic and square: three or four hues evenly spaced. Colourful, so let one lead and use the others as accents.
- Monochromatic and tints and shades: one hue at different lightness levels, the safest choice for interfaces and charts.
Worked example
You start from your logo blue, #1e90ff, and choose “Tints and shades scale”. Nine swatches run from a pale sky colour to deep navy, with your blue in the middle. Under each one the page reports how well white and black text read on it. The palest step shows black text at about 18.5:1, while white text on the darkest reaches 15:1, both marked AA. You copy the CSS variables into your stylesheet and download the PNG for the brand document.
Reading the contrast figures
Contrast is the WCAG 2.2 ratio between two colours, from 1:1 up to 21:1. Normal-size text should reach 4.5:1 and large headings 3:1 to meet level AA. Pick text colour from the side that passes.
Limits
The wheel used here is the screen one, where red sits opposite cyan, rather than the painter’s wheel. Colours are calculated for sRGB displays, so printed results will differ. Harmonies are a starting point, not a guarantee of good taste: adjust lightness to suit your design.
How to use Colour Palette Generator
- Type or pick a base colour, or press Random colour.
- Choose a palette type and look at the swatches and their text contrast.
- Copy the codes or CSS variables, or download the palette as CSS or PNG.
Privacy: how it works
Palettes are worked out in your browser. Nothing you type is sent anywhere.
Frequently asked questions
Which colour wheel does it use?
The screen colour wheel (hue in HSL), where the opposite of red is cyan. Art classes often use the red-yellow-blue painter’s wheel, where red’s opposite is green, so the suggestions can differ from a printed colour wheel.
What do the contrast numbers mean?
They are WCAG 2.2 contrast ratios between the colour and white or black text, from 1:1 (no contrast) to 21:1. "AA" appears when the ratio reaches 4.5:1, the level WCAG asks for normal-size text.
Can I use the colours commercially?
Yes. Colours and colour codes are not owned by anyone; the palette is yours to use in any project.