#B166E5#B166E5
#B166E5 is a light, vivid violet. Relative luminance 0.245; OKLCH L 64.8% C 0.192 H 309.3°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #B166E5 |
|---|---|
| RGB | rgb(177, 102, 229) |
| HSL | hsl(275, 71%, 65%) |
| HSV | hsv(275, 55%, 90%) |
| CMYK | cmyk(22.7%, 55.5%, 0%, 10.2%) |
| CIE-LAB | lab(56.59, 52.26, -52.94) |
| CIE-LCH | lch(56.59, 74.39, 314.63°) |
| OKLab | oklab(64.79% 0.1217 -0.1487) |
| OKLCH | oklch(64.79% 0.192 309.3) |
| XYZ | xyz(37.0230, 24.5076, 76.8936) |
| Luminance | 0.2451 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.36
Bright Lilac
#C95EFB
ΔE00 4.51
Bright Lavender
#C760FF
ΔE00 4.55
Lighter Purple
#A55AF4
ΔE00 4.56
Easter Purple
#C071FE
ΔE00 4.91
Mediumorchid
#BA55D3
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166E5 #9AE566
analogous
#7166E5 #B166E5 #E566DA
triadic
#B166E5 #E5B166 #66E5B1
tetradic
#B166E5 #E57166 #9AE566 #66DAE5
square
#B166E5 #E57166 #9AE566 #66DAE5
split-complementary
#B166E5 #DAE566 #66E571
monochromatic
#761EB2 #9632DC #B166E5 #CC9AEE #E6CFF7
Accessibility & contrast
On white
3.56
#B166E5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.90
#B166E5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166E5
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166E5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166E5 | 1.00 | 3.56 | 5.90 | 5.90 |
| #FFFFFF | 3.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D84E9
Deuteranopia (green-blind)
#5889E2
Tritanopia (blue-blind)
#AA7D9C
Achromatopsia (no color)
#888888
Design tokens & code
CSS
--color: #b166e5; /* rgb */ color: rgb(177, 102, 229); /* oklch */ color: oklch(64.8% 0.192 309.3);
Tailwind
colors: {
custom: {
50: '#cb94ee',
500: '#b166e5',
950: '#000000',
},
}SCSS
$custom: #b166e5; $custom-light: #cb94ee; $custom-dark: #000000;
JSON
{
"hex": "#b166e5",
"rgb": {
"r": 177,
"g": 102,
"b": 229
},
"hsl": {
"h": 275.433,
"s": 70.95,
"l": 64.902
},
"oklch": {
"l": 0.64789,
"c": 0.19219,
"h": 309.3
},
"luminance": 0.24507
}Semantic roles & 50–950 ramp
primary
#B166E5
secondary
#CFE9BE
accent
#D31361
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84