#817DCB

Closest named color: Deep Lilac (#966EBD). oklch(62.6% 0.116 284.9), rgb(129, 125, 203).

Aa

Black text reads best on this color (5.72:1).

About this color

#817DCB is a medium-light, moderately saturated purple. In OKLCH its lightness is 63%, its chroma 0.116 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Deep Lilac (#966EBD), ΔE 0.048 away. Black text reads best on it, at 5.72:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromamoderately saturated (0.116)
Temperaturecool
Nearest nameDeep Lilac (#966EBD)
Black text5.72:1
White text3.66:1

Values

HEX#817DCB
RGBrgb(129, 125, 203)
HSLhsl(243, 43%, 64%)
OKLCHoklch(62.6% 0.116 284.9)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #817DCB 3.66:1 AA large text Lc -69.7 Content text, not long reading
Black text on #817DCB 5.72:1 AA Lc 39.9 Non-text elements, placeholder text
#817DCB text on white 3.66:1 AA large text Lc 64.2 Content text, not long reading
#817DCB text on black 5.72:1 AA Lc -37.5 Non-text elements, placeholder text

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.

  1. Step 50

    50

    #F5F5FA

    oklch(97.2% 0.007 286.3)

  2. Step 100

    100

    #E8E9F5

    oklch(93.7% 0.016 282.3)

  3. Step 200

    200

    #D6D7EE

    oklch(88.5% 0.031 283.8)

  4. Step 300

    300

    #BCBCE5

    oklch(80.9% 0.058 285)

  5. Step 400

    400

    #9A99D7

    oklch(70.7% 0.09 284.6)

  6. Step 500

    500 (this color)

    #817DCB

    oklch(62.6% 0.116 284.9)

  7. Step 600

    600

    #6D67B9

    oklch(55.7% 0.125 284.9)

  8. Step 700

    700

    #5B55A0

    oklch(49.2% 0.117 284.9)

  9. Step 800

    800

    #4A4682

    oklch(42.8% 0.097 284.5)

  10. Step 900

    900

    #3E3B68

    oklch(37.7% 0.076 285.2)

  11. Step 950

    950

    #24233D

    oklch(27.1% 0.048 284.5)

Export this scale for Tailwind in the Tailwind colors tool

#817DCB with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#6488CE0.044
Deuteranopia (no green cones)#6283C90.043
Tritanopia (no blue cones)#6D8C9A0.100
Achromatopsia (no color)#8585850.116

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #817DCB

    #817DCB

    oklch(62.6% 0.116 284.9)

  • #938B2A

    #938B2A

    oklch(62.6% 0.116 104.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #817DCB

    #817DCB

    oklch(62.6% 0.116 284.9)

  • #558ACD

    #558ACD

    oklch(62.6% 0.117 255)

  • #A271B8

    #A271B8

    oklch(62.5% 0.117 314.9)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #817DCB

    #817DCB

    oklch(62.6% 0.116 284.9)

  • #B17D29

    #B17D29

    oklch(62.8% 0.116 75)

  • #69974D

    #69974D

    oklch(62.5% 0.115 134.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #817DCB

    #817DCB

    oklch(62.6% 0.116 284.9)

  • #C16F4A

    #C16F4A

    oklch(62.5% 0.116 44.4)

  • #2F9E76

    #2F9E76

    oklch(62.7% 0.116 164.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #817DCB

    #817DCB

    oklch(62.6% 0.116 284.9)

  • #C46971

    #C46971

    oklch(62.7% 0.116 15.4)

  • #938B2A

    #938B2A

    oklch(62.6% 0.116 104.6)

  • #009C9C

    #009C9C

    oklch(62.7% 0.107 194.8)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #817DCB, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #817DCB in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.