#817DC2
Closest named color: Deep Lilac (#966EBD). oklch(62.2% 0.103 285.6), rgb(129, 125, 194).
Aa
Black text reads best on this color (5.64:1).
About this color
#817DC2 is a medium-light, moderately saturated purple. In OKLCH its lightness is 62%, its chroma 0.103 and its hue 286°. Its hue sits on the cool side of the wheel. The nearest named color is Deep Lilac (#966EBD), ΔE 0.047 away. Black text reads best on it, at 5.64:1.
| Hue family | Purples |
| Lightness | medium-light (62%) |
| Chroma | moderately saturated (0.103) |
| Temperature | cool |
| Nearest name | Deep Lilac (#966EBD) |
| Black text | 5.64:1 |
| White text | 3.71:1 |
Values
| HEX | #817DC2 |
| RGB | rgb(129, 125, 194) |
| HSL | hsl(243, 36%, 63%) |
| OKLCH | oklch(62.2% 0.103 285.6) |
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 #817DC2 | 3.71:1 | AA large text | Lc -70.2 | Content text, not long reading |
| Black text on #817DC2 | 5.64:1 | AA | Lc 39.4 | Non-text elements, placeholder text |
| #817DC2 text on white | 3.71:1 | AA large text | Lc 64.7 | Content text, not long reading |
| #817DC2 text on black | 5.64:1 | AA | Lc -37.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.
-
Step 50
50
#F5F5FA
oklch(97.2% 0.007 286.3)
-
Step 100
100
#E9E9F3
oklch(93.7% 0.013 286.1)
-
Step 200
200
#D7D7EB
oklch(88.5% 0.027 285.8)
-
Step 300
300
#BDBDE1
oklch(81% 0.05 285.2)
-
Step 400
400
#9B9AD1
oklch(70.7% 0.08 285)
-
Step 500
500 (this color)
#817DC2
oklch(62.2% 0.103 285.6)
-
Step 600
600
#6E68B2
oklch(55.6% 0.113 285.8)
-
Step 700
700
#5C5799
oklch(49.2% 0.104 285.4)
-
Step 800
800
#4B477C
oklch(42.7% 0.086 285.6)
-
Step 900
900
#3E3C64
oklch(37.7% 0.068 285)
-
Step 950
950
#24233A
oklch(26.9% 0.042 285.2)
#817DC2 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) | #6886C5 | 0.038 |
| Deuteranopia (no green cones) | #6682C0 | 0.038 |
| Tritanopia (no blue cones) | #708A96 | 0.090 |
| Achromatopsia (no color) | #848484 | 0.103 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #817DC2
#817DC2
oklch(62.2% 0.103 285.6)
- #8F8A39
#8F8A39
oklch(62.1% 0.103 105.7)
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 #817DC2, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Deep Lilac #966EBD ΔE 0.047
- Faded Blue #658CBB ΔE 0.055
- Medium Purple #9370DB ΔE 0.061
- Wisteria #A87DC2 ΔE 0.061
- Dark Lilac #9C6DA5 ΔE 0.064
- Lavender Gray #7E7F9A ΔE 0.064
- Soft Purple #A66FB5 ΔE 0.065
- Perrywinkle #8F8CE7 ΔE 0.066
Use #817DC2 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.