#9872C8#9872C8
#9872C8 is a light, vivid violet. Relative luminance 0.229; OKLCH L 62.5% C 0.131 H 303.2°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #9872C8 |
|---|---|
| RGB | rgb(152, 114, 200) |
| HSL | hsl(267, 44%, 62%) |
| HSV | hsv(267, 43%, 78%) |
| CMYK | cmyk(24%, 43%, 0%, 21.6%) |
| CIE-LAB | lab(54.95, 32.29, -39.33) |
| CIE-LCH | lch(54.95, 50.89, 309.39°) |
| OKLab | oklab(62.47% 0.0718 -0.1098) |
| OKLCH | oklch(62.47% 0.131 303.2) |
| XYZ | xyz(29.3893, 22.8802, 57.5004) |
| Luminance | 0.2288 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 2.28
Mediumpurple
#9370DB
ΔE00 4.04
Wisteria
#A87DC2
ΔE00 5.63
Amethyst
#9B5FC0
ΔE00 5.78
Soft Purple
#A66FB5
ΔE00 6.06
Deep Lavender
#8D5EB7
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9872C8 #A2C872
analogous
#7277C8 #9872C8 #C372C8
triadic
#9872C8 #C89872 #72C898
tetradic
#9872C8 #C87277 #A2C872 #72C8C3
square
#9872C8 #C87277 #A2C872 #72C8C3
split-complementary
#9872C8 #C8C372 #77C872
monochromatic
#5B368A #7847B6 #9872C8 #B89ED9 #D8CAEA
Accessibility & contrast
On white
3.77
#9872C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.58
#9872C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9872C8
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9872C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9872C8 | 1.00 | 3.77 | 5.58 | 5.58 |
| #FFFFFF | 3.77 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5C83CB
Deuteranopia (green-blind)
#6483C6
Tritanopia (blue-blind)
#908093
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #9872c8; /* rgb */ color: rgb(152, 114, 200); /* oklch */ color: oklch(62.5% 0.131 303.2);
Tailwind
colors: {
custom: {
50: '#b89bd9',
500: '#9872c8',
950: '#000000',
},
}SCSS
$custom: #9872c8; $custom-light: #b89bd9; $custom-dark: #000000;
JSON
{
"hex": "#9872c8",
"rgb": {
"r": 152,
"g": 114,
"b": 200
},
"hsl": {
"h": 266.512,
"s": 43.878,
"l": 61.569
},
"oklch": {
"l": 0.62469,
"c": 0.13115,
"h": 303.2
},
"luminance": 0.2288
}Semantic roles & 50–950 ramp
primary
#9872C8
secondary
#CDDBBB
accent
#B72E7B
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83