#B166C8#B166C8
#B166C8 is a light, vivid purple. Relative luminance 0.230; OKLCH L 63.2% C 0.161 H 317.9°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #B166C8 |
|---|---|
| RGB | rgb(177, 102, 200) |
| HSL | hsl(286, 47%, 59%) |
| HSV | hsv(286, 49%, 78%) |
| CMYK | cmyk(11.5%, 49%, 0%, 21.6%) |
| CIE-LAB | lab(55.09, 46.07, -38.92) |
| CIE-LCH | lch(55.09, 60.30, 319.81°) |
| OKLab | oklab(63.2% 0.1192 -0.1079) |
| OKLCH | oklch(63.2% 0.161 317.9) |
| XYZ | xyz(33.3067, 23.0211, 57.3214) |
| Luminance | 0.2302 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.10
Soft Purple
#A66FB5
ΔE00 4.78
Amethyst
#9B5FC0
ΔE00 5.06
Deep Lilac
#966EBD
ΔE00 6.00
Pinky Purple
#C94CBE
ΔE00 6.64
Wisteria
#A87DC2
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166C8 #7DC866
analogous
#8066C8 #B166C8 #C866AE
triadic
#B166C8 #C8B166 #66C8B1
tetradic
#B166C8 #C88066 #7DC866 #66AEC8
square
#B166C8 #C88066 #7DC866 #66AEC8
split-complementary
#B166C8 #AEC866 #66C880
monochromatic
#702F84 #9740B1 #B166C8 #C893D8 #DFC0E8
Accessibility & contrast
On white
3.75
#B166C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.60
#B166C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166C8
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166C8 | 1.00 | 3.75 | 5.60 | 5.60 |
| #FFFFFF | 3.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#547FCB
Deuteranopia (green-blind)
#6A86C5
Tritanopia (blue-blind)
#B1748E
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #b166c8; /* rgb */ color: rgb(177, 102, 200); /* oklch */ color: oklch(63.2% 0.161 317.9);
Tailwind
colors: {
custom: {
50: '#ca94d9',
500: '#b166c8',
950: '#000000',
},
}SCSS
$custom: #b166c8; $custom-light: #ca94d9; $custom-dark: #000000;
JSON
{
"hex": "#b166c8",
"rgb": {
"r": 177,
"g": 102,
"b": 200
},
"hsl": {
"h": 285.918,
"s": 47.115,
"l": 59.216
},
"oklch": {
"l": 0.63197,
"c": 0.16079,
"h": 317.9
},
"luminance": 0.2302
}Semantic roles & 50–950 ramp
primary
#B166C8
secondary
#BBD8B2
accent
#D75170
background
#FCF9FD
surface
#F9F2FA
border
#D2CCD3
text
#130D14
muted
#827E83