#9871D3#9871D3
#9871D3 is a light, vivid violet. Relative luminance 0.232; OKLCH L 62.9% C 0.147 H 300.6°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #9871D3 |
|---|---|
| RGB | rgb(152, 113, 211) |
| HSL | hsl(264, 53%, 64%) |
| HSV | hsv(264, 46%, 83%) |
| CMYK | cmyk(28%, 46.4%, 0%, 17.3%) |
| CIE-LAB | lab(55.27, 35.54, -45.08) |
| CIE-LCH | lch(55.27, 57.40, 308.25°) |
| OKLab | oklab(62.89% 0.0748 -0.1264) |
| OKLCH | oklch(62.89% 0.147 300.6) |
| XYZ | xyz(30.6092, 23.1887, 64.4787) |
| Luminance | 0.2319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.03
Deep Lilac
#966EBD
ΔE00 4.15
Amethyst
#9B5FC0
ΔE00 6.23
Light Urple
#B36FF6
ΔE00 6.56
Wisteria
#A87DC2
ΔE00 7.17
Deep Lavender
#8D5EB7
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9871D3 #ACD371
analogous
#717BD3 #9871D3 #C971D3
triadic
#9871D3 #D39871 #71D398
tetradic
#9871D3 #D3717B #ACD371 #71D3C9
square
#9871D3 #D3717B #ACD371 #71D3C9
split-complementary
#9871D3 #D3C971 #7BD371
monochromatic
#5A309A #7642C5 #9871D3 #BAA0E1 #DCCEF0
Accessibility & contrast
On white
3.72
#9871D3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.64
#9871D3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9871D3
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9871D3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9871D3 | 1.00 | 3.72 | 5.64 | 5.64 |
| #FFFFFF | 3.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5484D7
Deuteranopia (green-blind)
#5D84D1
Tritanopia (blue-blind)
#8D8398
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #9871d3; /* rgb */ color: rgb(152, 113, 211); /* oklch */ color: oklch(62.9% 0.147 300.6);
Tailwind
colors: {
custom: {
50: '#b99ae1',
500: '#9871d3',
950: '#000000',
},
}SCSS
$custom: #9871d3; $custom-light: #b99ae1; $custom-dark: #000000;
JSON
{
"hex": "#9871d3",
"rgb": {
"r": 152,
"g": 113,
"b": 211
},
"hsl": {
"h": 263.878,
"s": 52.688,
"l": 63.529
},
"oklch": {
"l": 0.62886,
"c": 0.14693,
"h": 300.6
},
"luminance": 0.23189
}Semantic roles & 50–950 ramp
primary
#9871D3
secondary
#D3E1BF
accent
#C02583
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83