#B166CD#B166CD
#B166CD is a light, vivid purple. Relative luminance 0.233; OKLCH L 63.5% C 0.166 H 316.2°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).
Color values
| HEX | #B166CD |
|---|---|
| RGB | rgb(177, 102, 205) |
| HSL | hsl(284, 51%, 60%) |
| HSV | hsv(284, 50%, 80%) |
| CMYK | cmyk(13.7%, 50.2%, 0%, 19.6%) |
| CIE-LAB | lab(55.34, 47.10, -41.38) |
| CIE-LCH | lch(55.34, 62.70, 318.70°) |
| OKLab | oklab(63.46% 0.1198 -0.115) |
| OKLCH | oklch(63.46% 0.166 316.2) |
| XYZ | xyz(33.9006, 23.2587, 60.4494) |
| Luminance | 0.2326 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.81
Amethyst
#9B5FC0
ΔE00 5.07
Soft Purple
#A66FB5
ΔE00 5.49
Deep Lilac
#966EBD
ΔE00 6.08
Light Urple
#B36FF6
ΔE00 6.96
Pinky Purple
#C94CBE
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166CD #82CD66
analogous
#7D66CD #B166CD #CD66B6
triadic
#B166CD #CDB166 #66CDB1
tetradic
#B166CD #CD7D66 #82CD66 #66B6CD
square
#B166CD #CD7D66 #82CD66 #66B6CD
split-complementary
#B166CD #B6CD66 #66CD7D
monochromatic
#722D8B #973DB9 #B166CD #C994DC #E0C2EB
Accessibility & contrast
On white
3.72
#B166CD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.65
#B166CD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166CD
5.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166CD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166CD | 1.00 | 3.72 | 5.65 | 5.65 |
| #FFFFFF | 3.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5180D0
Deuteranopia (green-blind)
#6787CA
Tritanopia (blue-blind)
#B07590
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #b166cd; /* rgb */ color: rgb(177, 102, 205); /* oklch */ color: oklch(63.5% 0.166 316.2);
Tailwind
colors: {
custom: {
50: '#ca94dc',
500: '#b166cd',
950: '#000000',
},
}SCSS
$custom: #b166cd; $custom-light: #ca94dc; $custom-dark: #000000;
JSON
{
"hex": "#b166cd",
"rgb": {
"r": 177,
"g": 102,
"b": 205
},
"hsl": {
"h": 283.689,
"s": 50.739,
"l": 60.196
},
"oklch": {
"l": 0.63457,
"c": 0.16612,
"h": 316.2
},
"luminance": 0.23258
}Semantic roles & 50–950 ramp
primary
#B166CD
secondary
#BEDBB4
accent
#BE2750
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130D15
muted
#827E83