#B166E9#B166E9
#B166E9 is a light, vivid violet. Relative luminance 0.247; OKLCH L 65.0% C 0.197 H 308.3°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #B166E9 |
|---|---|
| RGB | rgb(177, 102, 233) |
| HSL | hsl(274, 75%, 66%) |
| HSV | hsv(274, 56%, 91%) |
| CMYK | cmyk(24%, 56.2%, 0%, 8.6%) |
| CIE-LAB | lab(56.81, 53.15, -54.83) |
| CIE-LCH | lch(56.81, 76.36, 314.11°) |
| OKLab | oklab(65.02% 0.1219 -0.1542) |
| OKLCH | oklch(65.02% 0.197 308.3) |
| XYZ | xyz(37.5879, 24.7336, 79.8689) |
| Luminance | 0.2473 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 2.90
Lighter Purple
#A55AF4
ΔE00 4.21
Bright Lavender
#C760FF
ΔE00 4.22
Bright Lilac
#C95EFB
ΔE00 4.27
Easter Purple
#C071FE
ΔE00 4.55
Light Purple
#BF77F6
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166E9 #9EE966
analogous
#6F66E9 #B166E9 #E966DF
triadic
#B166E9 #E9B166 #66E9B1
tetradic
#B166E9 #E96F66 #9EE966 #66DFE9
square
#B166E9 #E96F66 #9EE966 #66DFE9
split-complementary
#B166E9 #DFE966 #66E96F
monochromatic
#761BBA #9630E1 #B166E9 #CC9CF1 #E8D1F8
Accessibility & contrast
On white
3.53
#B166E9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.95
#B166E9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166E9
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166E9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166E9 | 1.00 | 3.53 | 5.95 | 5.95 |
| #FFFFFF | 3.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3885ED
Deuteranopia (green-blind)
#5589E6
Tritanopia (blue-blind)
#A97E9E
Achromatopsia (no color)
#888888
Design tokens & code
CSS
--color: #b166e9; /* rgb */ color: rgb(177, 102, 233); /* oklch */ color: oklch(65.0% 0.197 308.3);
Tailwind
colors: {
custom: {
50: '#cb95f1',
500: '#b166e9',
950: '#000000',
},
}SCSS
$custom: #b166e9; $custom-light: #cb95f1; $custom-dark: #000000;
JSON
{
"hex": "#b166e9",
"rgb": {
"r": 177,
"g": 102,
"b": 233
},
"hsl": {
"h": 274.351,
"s": 74.857,
"l": 65.686
},
"oklch": {
"l": 0.65024,
"c": 0.19658,
"h": 308.3
},
"luminance": 0.24733
}Semantic roles & 50–950 ramp
primary
#B166E9
secondary
#D2EBC0
accent
#D70E64
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85