#817FCB
Closest named color: Deep Lilac (#966EBD). oklch(63% 0.113 283.9), rgb(129, 127, 203).
Aa
Black text reads best on this color (5.83:1).
About this color
#817FCB is a medium-light, moderately saturated purple. In OKLCH its lightness is 63%, its chroma 0.113 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.83:1.
| Hue family | Purples |
| Lightness | medium-light (63%) |
| Chroma | moderately saturated (0.113) |
| Temperature | cool |
| Nearest name | Deep Lilac (#966EBD) |
| Black text | 5.83:1 |
| White text | 3.60:1 |
Values
| HEX | #817FCB |
| RGB | rgb(129, 127, 203) |
| HSL | hsl(242, 42%, 65%) |
| OKLCH | oklch(63% 0.113 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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #817FCB | 3.60:1 | AA large text | Lc -69.0 | Content text, not long reading |
| Black text on #817FCB | 5.83:1 | AA | Lc 40.5 | Non-text elements, placeholder text |
| #817FCB text on white | 3.60:1 | AA large text | Lc 63.5 | Content text, not long reading |
| #817FCB text on black | 5.83: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.
-
Step 50
50
#F5F5FA
oklch(97.2% 0.007 286.3)
-
Step 100
100
#E8E9F5
oklch(93.7% 0.016 282.3)
-
Step 200
200
#D6D7ED
oklch(88.5% 0.03 283.7)
-
Step 300
300
#BBBDE4
oklch(81% 0.055 282.8)
-
Step 400
400
#9999D6
oklch(70.6% 0.089 283.9)
-
Step 500
500 (this color)
#817FCB
oklch(63% 0.113 283.9)
-
Step 600
600
#6B67B8
oklch(55.5% 0.123 283.9)
-
Step 700
700
#5A569F
oklch(49.2% 0.114 283.8)
-
Step 800
800
#494681
oklch(42.6% 0.096 283.9)
-
Step 900
900
#3D3B67
oklch(37.6% 0.074 284.3)
-
Step 950
950
#24233C
oklch(27% 0.046 284.7)
#817FCB 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #6789CE | 0.040 |
| Deuteranopia (no green cones) | #6484C9 | 0.039 |
| Tritanopia (no blue cones) | #6D8E9B | 0.099 |
| Achromatopsia (no color) | #878787 | 0.113 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #817FCB
#817FCB
oklch(63% 0.113 283.9)
- #958C2F
#958C2F
oklch(63% 0.113 103.8)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #817FCB, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Deep Lilac #966EBD ΔE 0.051
- Medium Purple #9370DB ΔE 0.054
- Perrywinkle #8F8CE7 ΔE 0.054
- Soft Blue #6488EA ΔE 0.057
- Faded Blue #658CBB ΔE 0.059
- Wisteria #A87DC2 ΔE 0.061
- Lavender Blue #8B88F8 ΔE 0.070
- Soft Purple #A66FB5 ΔE 0.070
Use #817FCB 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.