#9872CF#9872CF
#9872CF is a light, vivid violet. Relative luminance 0.232; OKLCH L 62.8% C 0.140 H 301.3°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #9872CF |
|---|---|
| RGB | rgb(152, 114, 207) |
| HSL | hsl(265, 49%, 63%) |
| HSV | hsv(265, 45%, 81%) |
| CMYK | cmyk(26.6%, 44.9%, 0%, 18.8%) |
| CIE-LAB | lab(55.29, 33.99, -42.77) |
| CIE-LCH | lch(55.29, 54.63, 308.47°) |
| OKLab | oklab(62.84% 0.0729 -0.1197) |
| OKLCH | oklch(62.84% 0.14 301.3) |
| XYZ | xyz(30.2262, 23.2149, 61.9079) |
| Luminance | 0.2321 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.75
Deep Lilac
#966EBD
ΔE00 3.49
Amethyst
#9B5FC0
ΔE00 6.16
Wisteria
#A87DC2
ΔE00 6.49
Light Urple
#B36FF6
ΔE00 7.08
Soft Purple
#A66FB5
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9872CF #A9CF72
analogous
#727ACF #9872CF #C672CF
triadic
#9872CF #CF9872 #72CF98
tetradic
#9872CF #CF727A #A9CF72 #72CFC6
square
#9872CF #CF727A #A9CF72 #72CFC6
split-complementary
#9872CF #CFC672 #7ACF72
monochromatic
#5A3294 #7744BF #9872CF #B9A0DF #DBCDEE
Accessibility & contrast
On white
3.72
#9872CF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.64
#9872CF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9872CF
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9872CF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9872CF | 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)
#5884D2
Deuteranopia (green-blind)
#6084CD
Tritanopia (blue-blind)
#8E8297
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #9872cf; /* rgb */ color: rgb(152, 114, 207); /* oklch */ color: oklch(62.8% 0.140 301.3);
Tailwind
colors: {
custom: {
50: '#b89bde',
500: '#9872cf',
950: '#000000',
},
}SCSS
$custom: #9872cf; $custom-light: #b89bde; $custom-dark: #000000;
JSON
{
"hex": "#9872cf",
"rgb": {
"r": 152,
"g": 114,
"b": 207
},
"hsl": {
"h": 264.516,
"s": 49.206,
"l": 62.941
},
"oklch": {
"l": 0.6284,
"c": 0.14018,
"h": 301.3
},
"luminance": 0.23215
}Semantic roles & 50–950 ramp
primary
#9872CF
secondary
#D1DFBE
accent
#BD2980
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83