#8166CB#8166CB
#8166CB is a mid, vivid violet. Relative luminance 0.185; OKLCH L 58.3% C 0.151 H 293.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #8166CB |
|---|---|
| RGB | rgb(129, 102, 203) |
| HSL | hsl(256, 49%, 60%) |
| HSV | hsv(256, 50%, 80%) |
| CMYK | cmyk(36.5%, 49.8%, 0%, 20.4%) |
| CIE-LAB | lab(50.07, 33.76, -48.91) |
| CIE-LCH | lch(50.07, 59.43, 304.61°) |
| OKLab | oklab(58.34% 0.0601 -0.1383) |
| OKLCH | oklch(58.34% 0.151 293.5) |
| XYZ | xyz(24.5813, 18.4811, 58.7604) |
| Luminance | 0.1848 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 4.97
Light Indigo
#6D5ACF
ΔE00 5.38
Mediumslateblue
#7B68EE
ΔE00 5.64
Deep Lavender
#8D5EB7
ΔE00 5.66
Purpley
#8756E4
ΔE00 5.70
Slate Blue
#6A5ACD
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8166CB #B0CB66
analogous
#667DCB #8166CB #B466CB
triadic
#8166CB #CB8166 #66CB81
tetradic
#8166CB #CB667D #B0CB66 #66CBB4
square
#8166CB #CB667D #B0CB66 #66CBB4
split-complementary
#8166CB #CBB466 #7DCB66
monochromatic
#462E88 #5E3EB6 #8166CB #A794DB #CCC1EA
Accessibility & contrast
On white
4.47
#8166CB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.70
#8166CB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8166CB
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8166CB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8166CB | 1.00 | 4.47 | 4.70 | 4.70 |
| #FFFFFF | 4.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4078CF
Deuteranopia (green-blind)
#4575C9
Tritanopia (blue-blind)
#6F7A8F
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #8166cb; /* rgb */ color: rgb(129, 102, 203); /* oklch */ color: oklch(58.3% 0.151 293.5);
Tailwind
colors: {
custom: {
50: '#a992db',
500: '#8166cb',
950: '#000000',
},
}SCSS
$custom: #8166cb; $custom-light: #a992db; $custom-dark: #000000;
JSON
{
"hex": "#8166cb",
"rgb": {
"r": 129,
"g": 102,
"b": 203
},
"hsl": {
"h": 256.04,
"s": 49.268,
"l": 59.804
},
"oklch": {
"l": 0.58339,
"c": 0.15075,
"h": 293.5
},
"luminance": 0.18482
}Semantic roles & 50–950 ramp
primary
#8166CB
secondary
#CFDAB3
accent
#D94FB4
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83