#B166EB#B166EB
#B166EB is a light, vivid violet. Relative luminance 0.248; OKLCH L 65.1% C 0.199 H 307.8°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #B166EB |
|---|---|
| RGB | rgb(177, 102, 235) |
| HSL | hsl(274, 77%, 66%) |
| HSV | hsv(274, 57%, 92%) |
| CMYK | cmyk(24.7%, 56.6%, 0%, 7.8%) |
| CIE-LAB | lab(56.93, 53.60, -55.77) |
| CIE-LCH | lch(56.93, 77.35, 313.86°) |
| OKLab | oklab(65.14% 0.1219 -0.157) |
| OKLCH | oklch(65.14% 0.199 307.8) |
| XYZ | xyz(37.8752, 24.8485, 81.3821) |
| Luminance | 0.2485 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 2.70
Lighter Purple
#A55AF4
ΔE00 4.07
Bright Lavender
#C760FF
ΔE00 4.08
Bright Lilac
#C95EFB
ΔE00 4.18
Easter Purple
#C071FE
ΔE00 4.40
Light Purple
#BF77F6
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166EB #A0EB66
analogous
#6E66EB #B166EB #EB66E2
triadic
#B166EB #EBB166 #66EBB1
tetradic
#B166EB #EB6E66 #A0EB66 #66E2EB
square
#B166EB #EB6E66 #A0EB66 #66E2EB
split-complementary
#B166EB #E2EB66 #66EB6E
monochromatic
#7619BE #9530E4 #B166EB #CD9CF2 #E8D2F9
Accessibility & contrast
On white
3.52
#B166EB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.97
#B166EB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166EB
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166EB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166EB | 1.00 | 3.52 | 5.97 | 5.97 |
| #FFFFFF | 3.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3686EF
Deuteranopia (green-blind)
#5389E8
Tritanopia (blue-blind)
#A87F9F
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #b166eb; /* rgb */ color: rgb(177, 102, 235); /* oklch */ color: oklch(65.1% 0.199 307.8);
Tailwind
colors: {
custom: {
50: '#cc95f2',
500: '#b166eb',
950: '#000000',
},
}SCSS
$custom: #b166eb; $custom-light: #cc95f2; $custom-dark: #000000;
JSON
{
"hex": "#b166eb",
"rgb": {
"r": 177,
"g": 102,
"b": 235
},
"hsl": {
"h": 273.835,
"s": 76.879,
"l": 66.078
},
"oklch": {
"l": 0.65143,
"c": 0.19876,
"h": 307.8
},
"luminance": 0.24848
}Semantic roles & 50–950 ramp
primary
#B166EB
secondary
#D4ECC1
accent
#D90C66
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85