#B166E4#B166E4
#B166E4 is a light, vivid violet. Relative luminance 0.245; OKLCH L 64.7% C 0.191 H 309.6°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #B166E4 |
|---|---|
| RGB | rgb(177, 102, 228) |
| HSL | hsl(276, 70%, 65%) |
| HSV | hsv(276, 55%, 89%) |
| CMYK | cmyk(22.4%, 55.3%, 0%, 10.6%) |
| CIE-LAB | lab(56.54, 52.04, -52.47) |
| CIE-LCH | lch(56.54, 73.90, 314.76°) |
| OKLab | oklab(64.73% 0.1217 -0.1473) |
| OKLCH | oklch(64.73% 0.191 309.6) |
| XYZ | xyz(36.8837, 24.4519, 76.1604) |
| Luminance | 0.2445 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.48
Bright Lilac
#C95EFB
ΔE00 4.58
Bright Lavender
#C760FF
ΔE00 4.65
Lighter Purple
#A55AF4
ΔE00 4.65
Mediumorchid
#BA55D3
ΔE00 4.95
Easter Purple
#C071FE
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166E4 #99E466
analogous
#7266E4 #B166E4 #E466D8
triadic
#B166E4 #E4B166 #66E4B1
tetradic
#B166E4 #E47266 #99E466 #66D8E4
square
#B166E4 #E47266 #99E466 #66D8E4
split-complementary
#B166E4 #D8E466 #66E472
monochromatic
#761FB0 #9632DB #B166E4 #CC9AED #E6CEF6
Accessibility & contrast
On white
3.57
#B166E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.89
#B166E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166E4
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166E4 | 1.00 | 3.57 | 5.89 | 5.89 |
| #FFFFFF | 3.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E84E8
Deuteranopia (green-blind)
#5989E1
Tritanopia (blue-blind)
#AA7D9B
Achromatopsia (no color)
#888888
Design tokens & code
CSS
--color: #b166e4; /* rgb */ color: rgb(177, 102, 228); /* oklch */ color: oklch(64.7% 0.191 309.6);
Tailwind
colors: {
custom: {
50: '#cb94ed',
500: '#b166e4',
950: '#000000',
},
}SCSS
$custom: #b166e4; $custom-light: #cb94ed; $custom-dark: #000000;
JSON
{
"hex": "#b166e4",
"rgb": {
"r": 177,
"g": 102,
"b": 228
},
"hsl": {
"h": 275.714,
"s": 70,
"l": 64.706
},
"oklch": {
"l": 0.64731,
"c": 0.19109,
"h": 309.6
},
"luminance": 0.24451
}Semantic roles & 50–950 ramp
primary
#B166E4
secondary
#CFE9BD
accent
#D21461
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84