#8166C8#8166C8
#8166C8 is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.2% C 0.147 H 294.1°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).
Color values
| HEX | #8166C8 |
|---|---|
| RGB | rgb(129, 102, 200) |
| HSL | hsl(257, 47%, 59%) |
| HSV | hsv(257, 49%, 78%) |
| CMYK | cmyk(35.5%, 49%, 0%, 21.6%) |
| CIE-LAB | lab(49.91, 32.95, -47.46) |
| CIE-LCH | lch(49.91, 57.78, 304.77°) |
| OKLab | oklab(58.16% 0.0598 -0.134) |
| OKLCH | oklch(58.16% 0.147 294.1) |
| XYZ | xyz(24.2273, 18.3395, 56.8958) |
| Luminance | 0.1834 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 5.17
Deep Lavender
#8D5EB7
ΔE00 5.30
Light Indigo
#6D5ACF
ΔE00 5.55
Slate Blue
#6A5ACD
ΔE00 5.90
Purpley
#8756E4
ΔE00 6.04
Dark Periwinkle
#665FD1
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8166C8 #ADC866
analogous
#667CC8 #8166C8 #B266C8
triadic
#8166C8 #C88166 #66C881
tetradic
#8166C8 #C8667C #ADC866 #66C8B2
square
#8166C8 #C8667C #ADC866 #66C8B2
split-complementary
#8166C8 #C8B266 #7CC866
monochromatic
#472F84 #5F40B1 #8166C8 #A693D8 #CBC0E8
Accessibility & contrast
On white
4.50
#8166C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.67
#8166C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8166C8
4.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8166C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8166C8 | 1.00 | 4.50 | 4.67 | 4.67 |
| #FFFFFF | 4.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4278CB
Deuteranopia (green-blind)
#4775C6
Tritanopia (blue-blind)
#70798E
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #8166c8; /* rgb */ color: rgb(129, 102, 200); /* oklch */ color: oklch(58.2% 0.147 294.1);
Tailwind
colors: {
custom: {
50: '#a992d9',
500: '#8166c8',
950: '#000000',
},
}SCSS
$custom: #8166c8; $custom-light: #a992d9; $custom-dark: #000000;
JSON
{
"hex": "#8166c8",
"rgb": {
"r": 129,
"g": 102,
"b": 200
},
"hsl": {
"h": 256.531,
"s": 47.115,
"l": 59.216
},
"oklch": {
"l": 0.58158,
"c": 0.14676,
"h": 294.1
},
"luminance": 0.1834
}Semantic roles & 50–950 ramp
primary
#8166C8
secondary
#CED8B2
accent
#D751B2
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#100D15
muted
#7F7E83