#816CD6#816CD6
#816CD6 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.1% C 0.156 H 290.0°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #816CD6 |
|---|---|
| RGB | rgb(129, 108, 214) |
| HSL | hsl(252, 56%, 63%) |
| HSV | hsv(252, 50%, 84%) |
| CMYK | cmyk(39.7%, 49.5%, 0%, 16.1%) |
| CIE-LAB | lab(52.11, 33.25, -51.92) |
| CIE-LCH | lch(52.11, 61.65, 302.64°) |
| OKLab | oklab(60.07% 0.0535 -0.1471) |
| OKLCH | oklch(60.07% 0.156 290) |
| XYZ | xyz(26.5501, 20.2465, 66.1144) |
| Luminance | 0.2025 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 3.80
Mediumslateblue
#7B68EE
ΔE00 3.92
Dark Periwinkle
#665FD1
ΔE00 6.37
Purpley
#8756E4
ΔE00 6.53
Light Indigo
#6D5ACF
ΔE00 6.65
Slate Blue
#6A5ACD
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#816CD6 #C1D66C
analogous
#6C8CD6 #816CD6 #B66CD6
triadic
#816CD6 #D6816C #6CD681
tetradic
#816CD6 #D66C8C #C1D66C #6CD6B6
square
#816CD6 #D66C8C #C1D66C #6CD6B6
split-complementary
#816CD6 #D6B66C #8CD66C
monochromatic
#422C9C #583CC9 #816CD6 #AA9CE3 #D3CCF1
Accessibility & contrast
On white
4.16
#816CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#816CD6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #816CD6
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##816CD6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##816CD6 | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#417EDA
Deuteranopia (green-blind)
#437AD4
Tritanopia (blue-blind)
#6A8297
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #816cd6; /* rgb */ color: rgb(129, 108, 214); /* oklch */ color: oklch(60.1% 0.156 290.0);
Tailwind
colors: {
custom: {
50: '#aa96e3',
500: '#816cd6',
950: '#000000',
},
}SCSS
$custom: #816cd6; $custom-light: #aa96e3; $custom-dark: #000000;
JSON
{
"hex": "#816cd6",
"rgb": {
"r": 129,
"g": 108,
"b": 214
},
"hsl": {
"h": 251.887,
"s": 56.383,
"l": 63.137
},
"oklch": {
"l": 0.60068,
"c": 0.15648,
"h": 290
},
"luminance": 0.20247
}Semantic roles & 50–950 ramp
primary
#816CD6
secondary
#DAE2BC
accent
#C422A4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84