#817FCA

Closest named color: Deep Lilac (#966EBD). oklch(63% 0.112 283.9), rgb(129, 127, 202).

Aa

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

About this color

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

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

Values

HEX#817FCA
RGBrgb(129, 127, 202)
HSLhsl(242, 41%, 65%)
OKLCHoklch(63% 0.112 283.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 #817FCA 3.60:1 AA large text Lc -69.1 Content text, not long reading
Black text on #817FCA 5.82:1 AA Lc 40.5 Non-text elements, placeholder text
#817FCA text on white 3.60:1 AA large text Lc 63.6 Content text, not long reading
#817FCA text on black 5.82:1 AA Lc -38.1 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

    #E8E9F4

    oklch(93.6% 0.015 281.9)

  3. Step 200

    200

    #D6D7ED

    oklch(88.5% 0.03 283.7)

  4. Step 300

    300

    #BCBDE3

    oklch(81% 0.053 284)

  5. Step 400

    400

    #9999D6

    oklch(70.6% 0.089 283.9)

  6. Step 500

    500 (this color)

    #817FCA

    oklch(63% 0.112 283.9)

  7. Step 600

    600

    #6C68B7

    oklch(55.7% 0.12 284.1)

  8. Step 700

    700

    #5A569E

    oklch(49.1% 0.113 284)

  9. Step 800

    800

    #494780

    oklch(42.8% 0.093 283.3)

  10. Step 900

    900

    #3D3C67

    oklch(37.8% 0.073 283.4)

  11. Step 950

    950

    #24233C

    oklch(27% 0.046 284.7)

Export this scale for Tailwind in the Tailwind colors tool

#817FCA 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)#6789CD0.040
Deuteranopia (no green cones)#6484C80.039
Tritanopia (no blue cones)#6D8D9B0.096
Achromatopsia (no color)#8787870.112

Harmonies

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

Complementary

The opposite hue (180°).

  • #817FCA

    #817FCA

    oklch(63% 0.112 283.9)

  • #948C31

    #948C31

    oklch(62.9% 0.111 104.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #817FCA

    #817FCA

    oklch(63% 0.112 283.9)

  • #578CCB

    #578CCB

    oklch(63% 0.111 253.7)

  • #A174B8

    #A174B8

    oklch(62.9% 0.111 313.7)

Open the analogous palette in the generator

Split complementary

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

  • #817FCA

    #817FCA

    oklch(63% 0.112 283.9)

  • #B17E31

    #B17E31

    oklch(63% 0.111 74.1)

  • #6D984F

    #6D984F

    oklch(63.1% 0.112 133.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #817FCA

    #817FCA

    oklch(63% 0.112 283.9)

  • #C1714F

    #C1714F

    oklch(63% 0.112 43.4)

  • #399E77

    #399E77

    oklch(63% 0.111 164.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #817FCA

    #817FCA

    oklch(63% 0.112 283.9)

  • #C36B74

    #C36B74

    oklch(63% 0.112 14.3)

  • #948C31

    #948C31

    oklch(62.9% 0.111 104.3)

  • #009D9C

    #009D9C

    oklch(63% 0.108 194)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #817FCA 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.