#B166E8#B166E8
#B166E8 is a light, vivid violet. Relative luminance 0.247; OKLCH L 65.0% C 0.195 H 308.6°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #B166E8 |
|---|---|
| RGB | rgb(177, 102, 232) |
| HSL | hsl(275, 74%, 65%) |
| HSV | hsv(275, 56%, 91%) |
| CMYK | cmyk(23.7%, 56%, 0%, 9%) |
| CIE-LAB | lab(56.76, 52.93, -54.36) |
| CIE-LCH | lch(56.76, 75.87, 314.23°) |
| OKLab | oklab(64.96% 0.1218 -0.1529) |
| OKLCH | oklch(64.96% 0.195 308.6) |
| XYZ | xyz(37.4454, 24.6766, 79.1187) |
| Luminance | 0.2468 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.01
Lighter Purple
#A55AF4
ΔE00 4.29
Bright Lavender
#C760FF
ΔE00 4.30
Bright Lilac
#C95EFB
ΔE00 4.32
Easter Purple
#C071FE
ΔE00 4.64
Light Purple
#BF77F6
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166E8 #9DE866
analogous
#7066E8 #B166E8 #E866DE
triadic
#B166E8 #E8B166 #66E8B1
tetradic
#B166E8 #E87066 #9DE866 #66DEE8
square
#B166E8 #E87066 #9DE866 #66DEE8
split-complementary
#B166E8 #DEE866 #66E870
monochromatic
#761CB8 #9631E0 #B166E8 #CC9BF0 #E7D0F8
Accessibility & contrast
On white
3.54
#B166E8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.94
#B166E8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166E8
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166E8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166E8 | 1.00 | 3.54 | 5.94 | 5.94 |
| #FFFFFF | 3.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3985EC
Deuteranopia (green-blind)
#5589E5
Tritanopia (blue-blind)
#A97E9D
Achromatopsia (no color)
#888888
Design tokens & code
CSS
--color: #b166e8; /* rgb */ color: rgb(177, 102, 232); /* oklch */ color: oklch(65.0% 0.195 308.6);
Tailwind
colors: {
custom: {
50: '#cb94f0',
500: '#b166e8',
950: '#000000',
},
}SCSS
$custom: #b166e8; $custom-light: #cb94f0; $custom-dark: #000000;
JSON
{
"hex": "#b166e8",
"rgb": {
"r": 177,
"g": 102,
"b": 232
},
"hsl": {
"h": 274.615,
"s": 73.864,
"l": 65.49
},
"oklch": {
"l": 0.64965,
"c": 0.19548,
"h": 308.6
},
"luminance": 0.24676
}Semantic roles & 50–950 ramp
primary
#B166E8
secondary
#D2EBBF
accent
#D61063
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85