How the palettes are made
Three numbers for each colour, and one sum for the contrast.
Drawn in OKLCH
- Lightness: from 84% to 92%, so every colour stays pale.
- Chroma: from 0.03 to 0.08, soft but never grey.
- Hue: five, 72° apart from a random start, each nudged up to 12°.
- Locks: a locked colour stays, and new hues are spaced from it.
Kept to what a screen shows
Some pale colours need more than a screen can show. Their chroma comes down until they fit; lightness and hue stay.
oklch(92% 0.08 270) asks for too much blue.
Shown at chroma 0.038 #dae4ff
From OKLCH to a HEX code
A mint, oklch(90% 0.05 160), to its code.
Angle to axes
a = C × cos h = −0.047
b = C × sin h = 0.017Linear light
The OKLab matrices give red, green and blue light: 0.542, 0.813, 0.650.
The screen’s curve
Each through the sRGB curve, times 255: rgb(194, 233, 211).
The code
Base 16, two figures each:
#c2e9d3
The contrast ratio
- Linear: each channel ÷ 255 is c; c ÷ 12.92 up to 0.04045, above it ((c + 0.055) ÷ 1.055)2.4.
- Relative luminance: Y = 0.2126 R + 0.7152 G + 0.0722 B, from 0 for black to 1 for white.
- Ratio: (lighter Y + 0.05) ÷ (darker Y + 0.05), rounded down to two decimals.
- The mint on this page’s ink: (0.7445 + 0.05) ÷ (0.0093 + 0.05) = 13.39:1.
- White on black: (1 + 0.05) ÷ (0 + 0.05) = 21:1, the most there is. A colour on itself is 1:1.