Color Companion

When a colour cannot be displayed

A vivid colour whose harmonies fall outside sRGB, showing what clipping does and why the tool tells you.

#ff0000

A light, vivid orange. This is exactly CSS `red`.

Hex
#ff0000
RGB
rgb(255 0 0)
HSL
hsl(0 100% 50%)
OKLCH
oklch(0.628 0.258 29.2)
CMYK
cmyk(0% 100% 100% 0%)
Nearest name
red (exact)

Readable text

White text

4:1

Black text

5.25:1

Use black text. Passes AA for normal text: yes · AAA: no · AA for large text: yes

Worth knowing

  • Worth knowing

    12 derived colours are outside sRGB

    Rotating hue at this chroma produces colours a normal screen cannot display, so they have been clipped to the nearest sRGB colour. The hex values shown are therefore not exactly what the maths asked for, and the harmony will look slightly less even than it should.

    Fix: Lower the chroma of the input colour before deriving harmonies, or accept the clipped values as an approximation.

  • Worth knowing

    A mid-tone: neither white nor black text reaches AAA

    The best this colour manages is 5.25:1 — against black text. That clears WCAG AA for normal text (4.5:1) but not AAA (7:1). Mid-tones look fine in a mockup and then fail review, because both text colours are only just adequate.

    Fix: Use black text on it, and move the lightness further from the middle if the text has to meet AAA.

  • Note

    CMYK here is a naive conversion

    CMYK has no fixed meaning without an output profile — the same numbers print differently on different presses and papers. The value shown is the standard arithmetic conversion, not a colour-managed one.

    Fix: For print work, convert in software with the press profile applied.

Complementary — the opposite hue

  • complementary

    #00a9db

    clipped to sRGB

Analogous — neighbouring hues

  • analogous −30°

    #f50084

    clipped to sRGB

  • analogous +30°

    #ef4600

    clipped to sRGB

Triadic — evenly spaced

  • triadic +120°

    #00ae00

    clipped to sRGB

  • triadic +240°

    #4f6fff

    clipped to sRGB

Split-complementary — softer opposites

  • split-complementary +150°

    #00b48c

    clipped to sRGB

  • split-complementary +210°

    #0090ff

    clipped to sRGB

Monochromatic — one hue, five lightnesses

  • lightness 0.25

    #710000

    clipped to sRGB

  • lightness 0.4

    #a90000

    clipped to sRGB

  • lightness 0.55

    #e20000

    clipped to sRGB

  • lightness 0.7

    #ff392b

    clipped to sRGB

  • lightness 0.85

    #ff7761

    clipped to sRGB

Try your own colour

Paste one on the home page — you can also pick a colour straight out of a photo there. This page is available as markdown.

Related examples