#B166AB#B166AB
#B166AB is a mid, vivid purple. Relative luminance 0.218; OKLCH L 61.8% C 0.132 H 330.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #B166AB |
|---|---|
| RGB | rgb(177, 102, 171) |
| HSL | hsl(305, 32%, 55%) |
| HSV | hsv(305, 42%, 69%) |
| CMYK | cmyk(0%, 42.4%, 3.4%, 30.6%) |
| CIE-LAB | lab(53.81, 40.43, -24.23) |
| CIE-LCH | lch(53.81, 47.13, 329.07°) |
| OKLab | oklab(61.81% 0.1139 -0.0659) |
| OKLCH | oklch(61.81% 0.132 330) |
| XYZ | xyz(30.2331, 21.7917, 41.1339) |
| Luminance | 0.2179 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Soft Purple
#A66FB5
ΔE00 4.25
Dark Lilac
#9C6DA5
ΔE00 4.97
Purplish Pink
#CE5DAE
ΔE00 5.62
Orchid (survey)
#C875C4
ΔE00 6.57
Pinky Purple
#C94CBE
ΔE00 6.91
Pale Magenta
#D767AD
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166AB #66B16C
analogous
#9266B1 #B166AB #B16686
triadic
#B166AB #ABB166 #66ABB1
tetradic
#B166AB #B19266 #66B16C #6686B1
square
#B166AB #B19266 #66B16C #6686B1
split-complementary
#B166AB #86B166 #66B192
monochromatic
#683564 #904A8B #B166AB #C68FC1 #DAB7D8
Accessibility & contrast
On white
3.92
#B166AB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.36
#B166AB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166AB
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166AB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166AB | 1.00 | 3.92 | 5.36 | 5.36 |
| #FFFFFF | 3.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#627AAD
Deuteranopia (green-blind)
#7784A9
Tritanopia (blue-blind)
#B66C81
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #b166ab; /* rgb */ color: rgb(177, 102, 171); /* oklch */ color: oklch(61.8% 0.132 330.0);
Tailwind
colors: {
custom: {
50: '#ca94c4',
500: '#b166ab',
950: '#000000',
},
}SCSS
$custom: #b166ab; $custom-light: #ca94c4; $custom-dark: #000000;
JSON
{
"hex": "#b166ab",
"rgb": {
"r": 177,
"g": 102,
"b": 171
},
"hsl": {
"h": 304.8,
"s": 32.468,
"l": 54.706
},
"oklch": {
"l": 0.61814,
"c": 0.13156,
"h": 330
},
"luminance": 0.2179
}Semantic roles & 50–950 ramp
primary
#B166AB
secondary
#AAC9AC
accent
#C9685F
background
#FCF9FC
surface
#F9F1F8
border
#D2CBD1
text
#130D12
muted
#827E81