#816CD7#816CD7
#816CD7 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.1% C 0.158 H 289.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #816CD7 |
|---|---|
| RGB | rgb(129, 108, 215) |
| HSL | hsl(252, 57%, 63%) |
| HSV | hsv(252, 50%, 84%) |
| CMYK | cmyk(40%, 49.8%, 0%, 15.7%) |
| CIE-LAB | lab(52.17, 33.53, -52.40) |
| CIE-LCH | lch(52.17, 62.20, 302.62°) |
| OKLab | oklab(60.13% 0.0536 -0.1484) |
| OKLCH | oklch(60.13% 0.158 289.8) |
| XYZ | xyz(26.6782, 20.2977, 66.7890) |
| Luminance | 0.2030 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.77
Mediumpurple
#9370DB
ΔE00 3.79
Dark Periwinkle
#665FD1
ΔE00 6.37
Purpley
#8756E4
ΔE00 6.49
Light Indigo
#6D5ACF
ΔE00 6.66
Slate Blue
#6A5ACD
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#816CD7 #C2D76C
analogous
#6C8CD7 #816CD7 #B66CD7
triadic
#816CD7 #D7816C #6CD781
tetradic
#816CD7 #D76C8C #C2D76C #6CD7B6
square
#816CD7 #D76C8C #C2D76C #6CD7B6
split-complementary
#816CD7 #D7B66C #8CD76C
monochromatic
#412B9E #583CCA #816CD7 #AA9CE4 #D3CCF1
Accessibility & contrast
On white
4.15
#816CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#816CD7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #816CD7
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##816CD7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##816CD7 | 1.00 | 4.15 | 5.06 | 5.06 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#407FDB
Deuteranopia (green-blind)
#427AD5
Tritanopia (blue-blind)
#698297
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #816cd7; /* rgb */ color: rgb(129, 108, 215); /* oklch */ color: oklch(60.1% 0.158 289.8);
Tailwind
colors: {
custom: {
50: '#aa96e4',
500: '#816cd7',
950: '#000000',
},
}SCSS
$custom: #816cd7; $custom-light: #aa96e4; $custom-dark: #000000;
JSON
{
"hex": "#816cd7",
"rgb": {
"r": 129,
"g": 108,
"b": 215
},
"hsl": {
"h": 251.776,
"s": 57.219,
"l": 63.333
},
"oklch": {
"l": 0.60129,
"c": 0.15781,
"h": 289.8
},
"luminance": 0.20299
}Semantic roles & 50–950 ramp
primary
#816CD7
secondary
#DBE2BC
accent
#C521A5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84