- Home
- Tools
- Color & Design
- Color Palette Generator
- Complementary Color Palette Generator
Complementary Color Palette Generator
Enter a color and get its complement: the hue on the opposite side of the color wheel, at the same lightness.
HEX, rgb, hsl, oklch or a color name.
Click a color to copy its HEX code.
Export
Two hues, 180° apart
Complementary colors lie opposite each other on the color wheel. Turn the hue of a color by 180° and you have its complement; no two hues are further apart.
Which color that is depends on the wheel. Painters, who mix from red, yellow and blue, pair blue with orange and red with green. On the wheel behind HSL the opposite of blue is yellow, and that of red is cyan. This page turns the hue in OKLCH, a model built on how the eye sees color, and keeps the lightness the same. There a sky blue ends up opposite an orange, and the red #dc2626 opposite the blue-green #008997.
From #0ea5e9, step by step
- In OKLCH,
#0ea5e9has a lightness of 0.685, a chroma of 0.148 and a hue of 237.3°. - Add 180° to the hue: 237.3° + 180° = 417.3°, and one full turn of 360° less is 57.3°. The same lightness and chroma at that hue give
#dc7f2b.
Where a complement helps
Use one color for most of the surface and its complement for the few things that have to stand out: a button, a price, the one bar in a chart that matters. Because the two hues differ as much as hues can, a little of the second is enough.
Where it goes wrong
In equal amounts and at full strength the two compete, and where they touch the edge seems to flicker. Make one of them clearly the main color.
The two colors here have the same lightness, so one cannot serve as text on the other: the contrast between #0ea5e9 and #dc7f2b is 1.06:1. For text, take a much lighter or darker version of one of them and test the pair in the contrast checker.
The color palette generator shows all six harmonies of a color side by side, with a scale of tints and shades.