#817DEF

Closest named color: Periwinkle (#8E82FE). oklch(64.7% 0.166 282.3), rgb(129, 125, 239).

Aa

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

About this color

#817DEF is a medium-light, vivid purple. In OKLCH its lightness is 65%, its chroma 0.166 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Periwinkle (#8E82FE), ΔE 0.032 away. Black text reads best on it, at 6.11:1.

Hue familyPurples
Lightnessmedium-light (65%)
Chromavivid (0.166)
Temperaturecool
Nearest namePeriwinkle (#8E82FE)
Black text6.11:1
White text3.43:1

Values

HEX#817DEF
RGBrgb(129, 125, 239)
HSLhsl(242, 78%, 71%)
OKLCHoklch(64.7% 0.166 282.3)

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 #817DEF 3.43:1 AA large text Lc -67.1 Content text, not long reading
Black text on #817DEF 6.11:1 AA Lc 42.4 Non-text elements, placeholder text
#817DEF text on white 3.43:1 AA large text Lc 61.7 Content text, not long reading
#817DEF text on black 6.11:1 AA Lc -40.0 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

    #F4F5FD

    oklch(97.2% 0.011 280.5)

  2. Step 100

    100

    #E7E8FA

    oklch(93.6% 0.024 283.4)

  3. Step 200

    200

    #D4D6F7

    oklch(88.5% 0.045 282.7)

  4. Step 300

    300

    #B8BBF4

    oklch(81% 0.08 282.1)

  5. Step 400

    400

    #9595EF

    oklch(70.7% 0.13 282.6)

  6. Step 500

    500 (this color)

    #817DEF

    oklch(64.7% 0.166 282.3)

  7. Step 600

    600

    #675ED8

    oklch(55.6% 0.181 282.1)

  8. Step 700

    700

    #564DBB

    oklch(49.1% 0.167 282)

  9. Step 800

    800

    #464097

    oklch(42.7% 0.138 282)

  10. Step 900

    900

    #3A3779

    oklch(37.7% 0.109 281.9)

  11. Step 950

    950

    #222147

    oklch(27.1% 0.069 282)

Export this scale for Tailwind in the Tailwind colors tool

#817DEF 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)#4C8EF30.068
Deuteranopia (no green cones)#4586EC0.069
Tritanopia (no blue cones)#5B95AB0.142
Achromatopsia (no color)#8A8A8A0.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #817DEF

    #817DEF

    oklch(64.7% 0.166 282.3)

  • #9F9000

    #9F9000

    oklch(64.6% 0.135 102)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #817DEF

    #817DEF

    oklch(64.7% 0.166 282.3)

  • #3290EF

    #3290EF

    oklch(64.6% 0.166 252.3)

  • #B06CD6

    #B06CD6

    oklch(64.7% 0.166 312.2)

Open the analogous palette in the generator

Split complementary

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

  • #817DEF

    #817DEF

    oklch(64.7% 0.166 282.3)

  • #C17E00

    #C17E00

    oklch(64.7% 0.138 72.2)

  • #66A222

    #66A222

    oklch(64.7% 0.166 132.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #817DEF

    #817DEF

    oklch(64.7% 0.166 282.3)

  • #DE652F

    #DE652F

    oklch(64.7% 0.165 42.4)

  • #00A874

    #00A874

    oklch(64.7% 0.141 162.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #817DEF

    #817DEF

    oklch(64.7% 0.166 282.3)

  • #E05B72

    #E05B72

    oklch(64.7% 0.166 12.5)

  • #9F9000

    #9F9000

    oklch(64.6% 0.135 102)

  • #00A3A0

    #00A3A0

    oklch(64.7% 0.111 192.4)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #817DEF.

Similar named colors

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

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