#817EF3

Closest named color: Periwinkle (#8E82FE). oklch(65.1% 0.17 281.7), rgb(129, 126, 243).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (65%)
Chromavivid (0.170)
Temperaturecool
Nearest namePeriwinkle (#8E82FE)
Black text6.21:1
White text3.38:1

Values

HEX#817EF3
RGBrgb(129, 126, 243)
HSLhsl(242, 83%, 72%)
OKLCHoklch(65.1% 0.17 281.7)

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 #817EF3 3.38:1 AA large text Lc -66.5 Content text, not long reading
Black text on #817EF3 6.21:1 AA Lc 43.0 Non-text elements, placeholder text
#817EF3 text on white 3.38:1 AA large text Lc 61.1 Content text, not long reading
#817EF3 text on black 6.21:1 AA Lc -40.6 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

    #D3D6F8

    oklch(88.5% 0.047 281.4)

  4. Step 300

    300

    #B7BBF6

    oklch(81% 0.083 281.3)

  5. Step 400

    400

    #9495F1

    oklch(70.7% 0.133 282)

  6. Step 500

    500 (this color)

    #817EF3

    oklch(65.1% 0.17 281.7)

  7. Step 600

    600

    #665DDA

    oklch(55.5% 0.185 281.8)

  8. Step 700

    700

    #554CBE

    oklch(49.1% 0.173 281.5)

  9. Step 800

    800

    #463F99

    oklch(42.7% 0.142 282.1)

  10. Step 900

    900

    #3A377A

    oklch(37.8% 0.111 281.7)

  11. Step 950

    950

    #222147

    oklch(27.1% 0.069 282)

Export this scale for Tailwind in the Tailwind colors tool

#817EF3 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)#4B90F70.069
Deuteranopia (no green cones)#4388F00.071
Tritanopia (no blue cones)#5997AD0.147
Achromatopsia (no color)#8C8C8C0.171

Harmonies

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

Complementary

The opposite hue (180°).

  • #817EF3

    #817EF3

    oklch(65.1% 0.17 281.7)

  • #A19100

    #A19100

    oklch(65.1% 0.136 101.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #817EF3

    #817EF3

    oklch(65.1% 0.17 281.7)

  • #2D92F3

    #2D92F3

    oklch(65.2% 0.17 251.7)

  • #B16CDA

    #B16CDA

    oklch(65.1% 0.171 311.5)

Open the analogous palette in the generator

Split complementary

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

  • #817EF3

    #817EF3

    oklch(65.1% 0.17 281.7)

  • #C37F00

    #C37F00

    oklch(65.1% 0.14 72)

  • #67A31B

    #67A31B

    oklch(65% 0.17 131.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #817EF3

    #817EF3

    oklch(65.1% 0.17 281.7)

  • #E2642E

    #E2642E

    oklch(65.1% 0.171 41.6)

  • #00AA73

    #00AA73

    oklch(65.2% 0.144 161.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #817EF3

    #817EF3

    oklch(65.1% 0.17 281.7)

  • #E35A74

    #E35A74

    oklch(65.1% 0.171 11.6)

  • #A19100

    #A19100

    oklch(65.1% 0.136 101.6)

  • #00A5A1

    #00A5A1

    oklch(65.2% 0.112 191.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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