Color Companion

Monochromatic palette

One hue at five lightness steps — the ramp most design systems are built on.

#6366f1

A mid-tone, vivid violet. Closest CSS name: `mediumslateblue`.

Hex
#6366f1
RGB
rgb(99 102 241)
HSL
hsl(238.7 83.5% 66.7%)
OKLCH
oklch(0.585 0.204 277.1)
CMYK
cmyk(58.92% 57.68% 0% 5.49%)
Nearest name
mediumslateblue

Readable text

White text

4.47:1

Black text

4.7:1

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

Worth knowing

  • Worth knowing

    9 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 4.7: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

    #9f7700

    clipped to sRGB

Analogous — neighbouring hues

  • analogous −30°

    #007eec

    clipped to sRGB

  • analogous +30°

    #9c4fd8

Triadic — evenly spaced

  • triadic +120°

    #d93a00

    clipped to sRGB

  • triadic +240°

    #009d46

    clipped to sRGB

Split-complementary — softer opposites

  • split-complementary +150°

    #c75800

    clipped to sRGB

  • split-complementary +210°

    #5a8f00

    clipped to sRGB

Monochromatic — one hue, five lightnesses

  • lightness 0.25

    #1f007f

    clipped to sRGB

  • lightness 0.4

    #3727b1

  • lightness 0.55

    #5a5be5

  • lightness 0.7

    #828bff

    clipped to sRGB

  • lightness 0.85

    #afbcff

    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