#8166BF#8166BF
#8166BF is a mid, vivid violet. Relative luminance 0.179; OKLCH L 57.6% C 0.135 H 295.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #8166BF |
|---|---|
| RGB | rgb(129, 102, 191) |
| HSL | hsl(258, 41%, 57%) |
| HSV | hsv(258, 47%, 75%) |
| CMYK | cmyk(32.5%, 46.6%, 0%, 25.1%) |
| CIE-LAB | lab(49.41, 30.56, -43.07) |
| CIE-LCH | lch(49.41, 52.81, 305.36°) |
| OKLab | oklab(57.63% 0.0588 -0.1212) |
| OKLCH | oklch(57.63% 0.135 295.9) |
| XYZ | xyz(23.2063, 17.9311, 51.5185) |
| Luminance | 0.1793 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.36
Deep Lilac
#966EBD
ΔE00 5.65
Mediumpurple
#9370DB
ΔE00 6.04
Amethyst
#9B5FC0
ΔE00 6.21
Light Indigo
#6D5ACF
ΔE00 6.38
Slate Blue
#6A5ACD
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8166BF #A4BF66
analogous
#6678BF #8166BF #AD66BF
triadic
#8166BF #BF8166 #66BF81
tetradic
#8166BF #BF6678 #A4BF66 #66BFAD
square
#8166BF #BF6678 #A4BF66 #66BFAD
split-complementary
#8166BF #BFAD66 #78BF66
monochromatic
#483278 #6144A3 #8166BF #A591D1 #C8BCE3
Accessibility & contrast
On white
4.58
#8166BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#8166BF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8166BF
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8166BF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8166BF | 1.00 | 4.58 | 4.59 | 4.59 |
| #FFFFFF | 4.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4976C2
Deuteranopia (green-blind)
#4E74BD
Tritanopia (blue-blind)
#737789
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #8166bf; /* rgb */ color: rgb(129, 102, 191); /* oklch */ color: oklch(57.6% 0.135 295.9);
Tailwind
colors: {
custom: {
50: '#a892d3',
500: '#8166bf',
950: '#000000',
},
}SCSS
$custom: #8166bf; $custom-light: #a892d3; $custom-dark: #000000;
JSON
{
"hex": "#8166bf",
"rgb": {
"r": 129,
"g": 102,
"b": 191
},
"hsl": {
"h": 258.202,
"s": 41.014,
"l": 57.451
},
"oklch": {
"l": 0.57628,
"c": 0.13467,
"h": 295.9
},
"luminance": 0.17931
}Semantic roles & 50–950 ramp
primary
#8166BF
secondary
#C7D2AE
accent
#D157AC
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#100D14
muted
#7F7E83