#B166E2#B166E2
#B166E2 is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.6% C 0.189 H 310.1°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #B166E2 |
|---|---|
| RGB | rgb(177, 102, 226) |
| HSL | hsl(276, 68%, 64%) |
| HSV | hsv(276, 55%, 89%) |
| CMYK | cmyk(21.7%, 54.9%, 0%, 11.4%) |
| CIE-LAB | lab(56.43, 51.60, -51.52) |
| CIE-LCH | lch(56.43, 72.92, 315.04°) |
| OKLab | oklab(64.61% 0.1216 -0.1446) |
| OKLCH | oklch(64.61% 0.189 310.1) |
| XYZ | xyz(36.6077, 24.3415, 74.7067) |
| Luminance | 0.2434 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.73
Bright Lilac
#C95EFB
ΔE00 4.74
Mediumorchid
#BA55D3
ΔE00 4.74
Bright Lavender
#C760FF
ΔE00 4.84
Lighter Purple
#A55AF4
ΔE00 4.86
Easter Purple
#C071FE
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166E2 #97E266
analogous
#7366E2 #B166E2 #E266D5
triadic
#B166E2 #E2B166 #66E2B1
tetradic
#B166E2 #E27366 #97E266 #66D5E2
square
#B166E2 #E27366 #97E266 #66D5E2
split-complementary
#B166E2 #D5E266 #66E273
monochromatic
#7521AD #9733D8 #B166E2 #CB99EC #E5CDF6
Accessibility & contrast
On white
3.58
#B166E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.87
#B166E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166E2
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166E2 | 1.00 | 3.58 | 5.87 | 5.87 |
| #FFFFFF | 3.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4084E6
Deuteranopia (green-blind)
#5A89DF
Tritanopia (blue-blind)
#AB7C9A
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #b166e2; /* rgb */ color: rgb(177, 102, 226); /* oklch */ color: oklch(64.6% 0.189 310.1);
Tailwind
colors: {
custom: {
50: '#cb94ec',
500: '#b166e2',
950: '#000000',
},
}SCSS
$custom: #b166e2; $custom-light: #cb94ec; $custom-dark: #000000;
JSON
{
"hex": "#b166e2",
"rgb": {
"r": 177,
"g": 102,
"b": 226
},
"hsl": {
"h": 276.29,
"s": 68.132,
"l": 64.314
},
"oklch": {
"l": 0.64615,
"c": 0.1889,
"h": 310.1
},
"luminance": 0.24341
}Semantic roles & 50–950 ramp
primary
#B166E2
secondary
#CDE7BC
accent
#D0155F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84