#B166DF#B166DF
#B166DF is a light, vivid violet. Relative luminance 0.242; OKLCH L 64.4% C 0.186 H 310.9°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #B166DF |
|---|---|
| RGB | rgb(177, 102, 223) |
| HSL | hsl(277, 65%, 64%) |
| HSV | hsv(277, 54%, 87%) |
| CMYK | cmyk(20.6%, 54.3%, 0%, 12.5%) |
| CIE-LAB | lab(56.27, 50.94, -50.09) |
| CIE-LCH | lch(56.27, 71.45, 315.48°) |
| OKLab | oklab(64.44% 0.1214 -0.1404) |
| OKLCH | oklch(64.44% 0.186 310.9) |
| XYZ | xyz(36.1997, 24.1783, 72.5576) |
| Luminance | 0.2418 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 4.14
Mediumorchid
#BA55D3
ΔE00 4.46
Bright Lilac
#C95EFB
ΔE00 5.00
Bright Lavender
#C760FF
ΔE00 5.17
Lighter Purple
#A55AF4
ΔE00 5.20
Easter Purple
#C071FE
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166DF #94DF66
analogous
#7466DF #B166DF #DF66D0
triadic
#B166DF #DFB166 #66DFB1
tetradic
#B166DF #DF7466 #94DF66 #66D0DF
square
#B166DF #DF7466 #94DF66 #66D0DF
split-complementary
#B166DF #D0DF66 #66DF74
monochromatic
#7523A8 #9733D4 #B166DF #CB99EA #E5CBF4
Accessibility & contrast
On white
3.60
#B166DF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.84
#B166DF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166DF
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166DF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166DF | 1.00 | 3.60 | 5.84 | 5.84 |
| #FFFFFF | 3.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4383E3
Deuteranopia (green-blind)
#5C88DC
Tritanopia (blue-blind)
#AB7B99
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #b166df; /* rgb */ color: rgb(177, 102, 223); /* oklch */ color: oklch(64.4% 0.186 310.9);
Tailwind
colors: {
custom: {
50: '#cb94e9',
500: '#b166df',
950: '#000000',
},
}SCSS
$custom: #b166df; $custom-light: #cb94e9; $custom-dark: #000000;
JSON
{
"hex": "#b166df",
"rgb": {
"r": 177,
"g": 102,
"b": 223
},
"hsl": {
"h": 277.19,
"s": 65.405,
"l": 63.725
},
"oklch": {
"l": 0.64443,
"c": 0.18563,
"h": 310.9
},
"luminance": 0.24178
}Semantic roles & 50–950 ramp
primary
#B166DF
secondary
#CBE6BB
accent
#CD185D
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84