All the Colors

Understand. Compare. Create.

Complementary colours: pairs and contrasts

Identify opposite colours on a colour wheel and build combinations suited to the model you choose.

Pairs depend on the model

Traditional painting wheel

Red and green; blue and orange; yellow and purple. These pairs are familiar guides in the red-yellow-blue model.

RGB / HSL wheel

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°.

A blue and yellow RGB example

Blue#0000FF
Yellow#FFFF00

These 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.

Balance the proportions

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.

Calculate an opposite HSL hue

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.

  1. Start with #336699. Its HSL coordinates are hue 210°, saturation 50% and lightness 40%.
  2. Add 180° to the hue: 210° + 180° = 390°. Wrap around the 360° circle, giving 30°.
  3. Keep saturation at 50% and lightness at 40%. The result is #996633.
Same starting blue, two different operations
OperationResult
Original blue#336699
H 210° · S 50% · L 40%
Rotate HSL hue 180°#996633
H 30° · S 50% · L 40%
Invert RGB channels#CC9966
H 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.

Try the pair in a real layout

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.

30 palettes. Your next idea starts here.

Get the free colour kit: HEX/RGB codes and a project worksheet.

Get my free kit →

Also discover: Casekit — customer support for online shops.