#8166BC#8166BC
#8166BC is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.5% C 0.131 H 296.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).
Color values
| HEX | #8166BC |
|---|---|
| RGB | rgb(129, 102, 188) |
| HSL | hsl(259, 39%, 57%) |
| HSV | hsv(259, 46%, 74%) |
| CMYK | cmyk(31.4%, 45.7%, 0%, 26.3%) |
| CIE-LAB | lab(49.25, 29.77, -41.59) |
| CIE-LCH | lch(49.25, 51.14, 305.60°) |
| OKLab | oklab(57.46% 0.0584 -0.1168) |
| OKLCH | oklch(57.46% 0.131 296.5) |
| XYZ | xyz(22.8795, 17.8004, 49.7976) |
| Luminance | 0.1780 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.13
Deep Lilac
#966EBD
ΔE00 5.46
Amethyst
#9B5FC0
ΔE00 6.14
Mediumpurple
#9370DB
ΔE00 6.41
Light Indigo
#6D5ACF
ΔE00 6.74
Slate Blue
#6A5ACD
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8166BC #A1BC66
analogous
#6676BC #8166BC #AC66BC
triadic
#8166BC #BC8166 #66BC81
tetradic
#8166BC #BC6676 #A1BC66 #66BCAC
square
#8166BC #BC6676 #A1BC66 #66BCAC
split-complementary
#8166BC #BCAC66 #76BC66
monochromatic
#483375 #62469F #8166BC #A491CF #C7BBE1
Accessibility & contrast
On white
4.61
#8166BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.56
#8166BC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #8166BC
4.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8166BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8166BC | 1.00 | 4.61 | 4.56 | 4.61 |
| #FFFFFF | 4.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B75BF
Deuteranopia (green-blind)
#5074BA
Tritanopia (blue-blind)
#747688
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #8166bc; /* rgb */ color: rgb(129, 102, 188); /* oklch */ color: oklch(57.5% 0.131 296.5);
Tailwind
colors: {
custom: {
50: '#a892d0',
500: '#8166bc',
950: '#000000',
},
}SCSS
$custom: #8166bc; $custom-light: #a892d0; $custom-dark: #000000;
JSON
{
"hex": "#8166bc",
"rgb": {
"r": 129,
"g": 102,
"b": 188
},
"hsl": {
"h": 258.837,
"s": 39.091,
"l": 56.863
},
"oklch": {
"l": 0.57457,
"c": 0.13061,
"h": 296.5
},
"luminance": 0.17801
}Semantic roles & 50–950 ramp
primary
#8166BC
secondary
#C5D0AD
accent
#CF59AA
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#100D14
muted
#7F7E82