#B166DB#B166DB
#B166DB is a light, vivid violet. Relative luminance 0.240; OKLCH L 64.2% C 0.181 H 311.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #B166DB |
|---|---|
| RGB | rgb(177, 102, 219) |
| HSL | hsl(278, 62%, 63%) |
| HSV | hsv(278, 53%, 86%) |
| CMYK | cmyk(19.2%, 53.4%, 0%, 14.1%) |
| CIE-LAB | lab(56.05, 50.07, -48.18) |
| CIE-LCH | lch(56.05, 69.49, 316.10°) |
| OKLab | oklab(64.22% 0.1212 -0.1348) |
| OKLCH | oklch(64.22% 0.181 311.9) |
| XYZ | xyz(35.6668, 23.9651, 69.7510) |
| Luminance | 0.2396 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.13
Light Urple
#B36FF6
ΔE00 4.71
Bright Lilac
#C95EFB
ΔE00 5.41
Bright Lavender
#C760FF
ΔE00 5.64
Lighter Purple
#A55AF4
ΔE00 5.69
Lightish Purple
#A552E6
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166DB #90DB66
analogous
#7766DB #B166DB #DB66CA
triadic
#B166DB #DBB166 #66DBB1
tetradic
#B166DB #DB7766 #90DB66 #66CADB
square
#B166DB #DB7766 #90DB66 #66CADB
split-complementary
#B166DB #CADB66 #66DB77
monochromatic
#7526A1 #9834CF #B166DB #CA98E7 #E4C9F2
Accessibility & contrast
On white
3.63
#B166DB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.79
#B166DB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166DB
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166DB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166DB | 1.00 | 3.63 | 5.79 | 5.79 |
| #FFFFFF | 3.63 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4683DF
Deuteranopia (green-blind)
#5F88D8
Tritanopia (blue-blind)
#AC7A97
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #b166db; /* rgb */ color: rgb(177, 102, 219); /* oklch */ color: oklch(64.2% 0.181 311.9);
Tailwind
colors: {
custom: {
50: '#cb94e7',
500: '#b166db',
950: '#000000',
},
}SCSS
$custom: #b166db; $custom-light: #cb94e7; $custom-dark: #000000;
JSON
{
"hex": "#b166db",
"rgb": {
"r": 177,
"g": 102,
"b": 219
},
"hsl": {
"h": 278.462,
"s": 61.905,
"l": 62.941
},
"oklch": {
"l": 0.64218,
"c": 0.18126,
"h": 311.9
},
"luminance": 0.23964
}Semantic roles & 50–950 ramp
primary
#B166DB
secondary
#C8E3B9
accent
#CA1C5A
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D16
muted
#827E84