#8166E8#8166E8
#8166E8 is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.2% C 0.189 H 289.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #8166E8 |
|---|---|
| RGB | rgb(129, 102, 232) |
| HSL | hsl(252, 74%, 65%) |
| HSV | hsv(252, 56%, 91%) |
| CMYK | cmyk(44.4%, 56%, 0%, 9%) |
| CIE-LAB | lab(51.83, 41.76, -62.53) |
| CIE-LCH | lch(51.83, 75.19, 303.74°) |
| OKLab | oklab(60.21% 0.0615 -0.1782) |
| OKLCH | oklch(60.21% 0.189 289) |
| XYZ | xyz(28.3660, 19.9950, 78.6931) |
| Luminance | 0.2000 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.58
Purpley
#8756E4
ΔE00 4.60
Mediumpurple
#9370DB
ΔE00 5.13
Dark Periwinkle
#665FD1
ΔE00 6.21
Light Indigo
#6D5ACF
ΔE00 6.25
Slate Blue
#6A5ACD
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8166E8 #CDE866
analogous
#668CE8 #8166E8 #C266E8
triadic
#8166E8 #E88166 #66E881
tetradic
#8166E8 #E8668C #CDE866 #66E8C2
square
#8166E8 #E8668C #CDE866 #66E8C2
split-complementary
#8166E8 #E8C266 #8CE866
monochromatic
#3C1CB8 #5531E0 #8166E8 #AD9BF0 #D9D0F8
Accessibility & contrast
On white
4.20
#8166E8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.00
#8166E8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8166E8
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8166E8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8166E8 | 1.00 | 4.20 | 5.00 | 5.00 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#167EEC
Deuteranopia (green-blind)
#1B78E5
Tritanopia (blue-blind)
#62839D
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8166e8; /* rgb */ color: rgb(129, 102, 232); /* oklch */ color: oklch(60.2% 0.189 289.0);
Tailwind
colors: {
custom: {
50: '#ac92f0',
500: '#8166e8',
950: '#000000',
},
}SCSS
$custom: #8166e8; $custom-light: #ac92f0; $custom-dark: #000000;
JSON
{
"hex": "#8166e8",
"rgb": {
"r": 129,
"g": 102,
"b": 232
},
"hsl": {
"h": 252.462,
"s": 73.864,
"l": 65.49
},
"oklch": {
"l": 0.60208,
"c": 0.18854,
"h": 289
},
"luminance": 0.19996
}Semantic roles & 50–950 ramp
primary
#8166E8
secondary
#E2EBBF
accent
#D610AD
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85