#8166E6#8166E6
#8166E6 is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.1% C 0.186 H 289.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #8166E6 |
|---|---|
| RGB | rgb(129, 102, 230) |
| HSL | hsl(253, 72%, 65%) |
| HSV | hsv(253, 56%, 90%) |
| CMYK | cmyk(43.9%, 55.7%, 0%, 9.8%) |
| CIE-LAB | lab(51.70, 41.20, -61.61) |
| CIE-LCH | lch(51.70, 74.12, 303.77°) |
| OKLab | oklab(60.07% 0.0614 -0.1756) |
| OKLCH | oklch(60.07% 0.186 289.3) |
| XYZ | xyz(28.0835, 19.8820, 77.2055) |
| Luminance | 0.1988 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.77
Purpley
#8756E4
ΔE00 4.54
Mediumpurple
#9370DB
ΔE00 5.01
Dark Periwinkle
#665FD1
ΔE00 6.07
Light Indigo
#6D5ACF
ΔE00 6.08
Slate Blue
#6A5ACD
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8166E6 #CBE666
analogous
#668BE6 #8166E6 #C166E6
triadic
#8166E6 #E68166 #66E681
tetradic
#8166E6 #E6668B #CBE666 #66E6C1
square
#8166E6 #E6668B #CBE666 #66E6C1
split-complementary
#8166E6 #E6C166 #8BE666
monochromatic
#3D1DB4 #5631DD #8166E6 #AC9BEF #D8CFF7
Accessibility & contrast
On white
4.22
#8166E6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.98
#8166E6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8166E6
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8166E6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8166E6 | 1.00 | 4.22 | 4.98 | 4.98 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B7EEA
Deuteranopia (green-blind)
#2078E3
Tritanopia (blue-blind)
#63829C
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8166e6; /* rgb */ color: rgb(129, 102, 230); /* oklch */ color: oklch(60.1% 0.186 289.3);
Tailwind
colors: {
custom: {
50: '#ac92ef',
500: '#8166e6',
950: '#000000',
},
}SCSS
$custom: #8166e6; $custom-light: #ac92ef; $custom-dark: #000000;
JSON
{
"hex": "#8166e6",
"rgb": {
"r": 129,
"g": 102,
"b": 230
},
"hsl": {
"h": 252.656,
"s": 71.91,
"l": 65.098
},
"oklch": {
"l": 0.60073,
"c": 0.18599,
"h": 289.3
},
"luminance": 0.19883
}Semantic roles & 50–950 ramp
primary
#8166E6
secondary
#E0EABE
accent
#D412AB
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D16
muted
#807E84