Traditional painting wheel
Red and green; blue and orange; yellow and purple. These pairs are familiar guides in the red-yellow-blue model.
Understand. Compare. Create.
Identify opposite colours on a colour wheel and build combinations suited to the model you choose.
Red and green; blue and orange; yellow and purple. These pairs are familiar guides in the red-yellow-blue model.
Red and cyan; green and magenta; blue and yellow. In HSL, the opposite hue is found by adding 180° to the starting hue, modulo 360°.
#0000FF#FFFF00These hues are opposite in RGB. They create a strong hue contrast, but that does not guarantee that all their variants will be readable as text.
Give one colour the larger spaces and keep its complement as a small answering note. Reducing the saturation of one helps soften the combination. Check lightness contrast separately for text and interface elements.
Choose the model before calculating a complement. This worked example uses CSS HSL: rotate the hue by 180 degrees while keeping the same saturation and lightness coordinates. Those coordinates do not guarantee equal perceived brightness.
#336699. Its HSL coordinates are hue 210°, saturation 50% and lightness 40%.#996633.| Operation | Result |
|---|---|
| Original blue | #336699H 210° · S 50% · L 40% |
| Rotate HSL hue 180° | #996633H 30° · S 50% · L 40% |
| Invert RGB channels | #CC9966H 30° · S 50% · L 60% |
RGB channel inversion is a different operation: subtract each 8-bit channel from 255. The starting RGB values 51, 102 and 153 become 204, 153 and 102. This produces #CC9966, whose hue is also 30° but whose lightness is now 60%. Calling both operations “the complement” without naming the method hides that difference.
At 0% saturation, changing hue alone does not produce a colorful opposite: a neutral gray remains neutral. Choose a lightness contrast or deliberately introduce saturation instead of treating its hue coordinate as a meaningful color direction.
For a poster, try the original blue for headings and the HSL opposite for a small marker or illustration detail. Then compare the lighter RGB-inverted version in the same position. Keep the wording, size and surrounding areas unchanged so you can judge the color change itself.
The RGB/HEX converter reports HSL values from a HEX input; it does not accept an HSL value as input. Compare the HEX results above, and check text contrast separately. Hue opposition alone does not ensure readable lettering, and these calculations are not paint-mixing recipes.
Background: W3C CSS HSL definition and the colour-wheel guide.
Get the free colour kit: HEX/RGB codes and a project worksheet.
Also discover: Casekit — customer support for online shops.