#9866BC#9866BC
#9866BC is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.8% C 0.136 H 309.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #9866BC |
|---|---|
| RGB | rgb(152, 102, 188) |
| HSL | hsl(275, 39%, 57%) |
| HSV | hsv(275, 46%, 74%) |
| CMYK | cmyk(19.1%, 45.7%, 0%, 26.3%) |
| CIE-LAB | lab(51.62, 36.30, -37.69) |
| CIE-LCH | lch(51.62, 52.33, 313.92°) |
| OKLab | oklab(59.78% 0.087 -0.1049) |
| OKLCH | oklch(59.78% 0.136 309.7) |
| XYZ | xyz(26.7757, 19.8094, 49.9803) |
| Luminance | 0.1981 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 2.23
Deep Lilac
#966EBD
ΔE00 2.54
Deep Lavender
#8D5EB7
ΔE00 3.42
Soft Purple
#A66FB5
ΔE00 5.20
Dark Lilac
#9C6DA5
ΔE00 6.60
Mediumpurple
#9370DB
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9866BC #8ABC66
analogous
#6D66BC #9866BC #BC66B5
triadic
#9866BC #BC9866 #66BC98
tetradic
#9866BC #BC6D66 #8ABC66 #66B5BC
square
#9866BC #BC6D66 #8ABC66 #66B5BC
split-complementary
#9866BC #B5BC66 #66BC6D
monochromatic
#593375 #7A469F #9866BC #B591CF #D1BBE1
Accessibility & contrast
On white
4.23
#9866BC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#9866BC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9866BC
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9866BC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9866BC | 1.00 | 4.23 | 4.96 | 4.96 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5279BF
Deuteranopia (green-blind)
#5F7CBA
Tritanopia (blue-blind)
#947488
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #9866bc; /* rgb */ color: rgb(152, 102, 188); /* oklch */ color: oklch(59.8% 0.136 309.7);
Tailwind
colors: {
custom: {
50: '#b893d0',
500: '#9866bc',
950: '#000000',
},
}SCSS
$custom: #9866bc; $custom-light: #b893d0; $custom-dark: #000000;
JSON
{
"hex": "#9866bc",
"rgb": {
"r": 152,
"g": 102,
"b": 188
},
"hsl": {
"h": 274.884,
"s": 39.091,
"l": 56.863
},
"oklch": {
"l": 0.5978,
"c": 0.13631,
"h": 309.7
},
"luminance": 0.19809
}Semantic roles & 50–950 ramp
primary
#9866BC
secondary
#BCD0AD
accent
#CF598A
background
#FBF9FC
surface
#F6F1F9
border
#D0CBD2
text
#110D14
muted
#807E82