#9878CF#9878CF
#9878CF is a light, vivid violet. Relative luminance 0.246; OKLCH L 63.9% C 0.130 H 299.7°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #9878CF |
|---|---|
| RGB | rgb(152, 120, 207) |
| HSL | hsl(262, 48%, 64%) |
| HSV | hsv(262, 42%, 81%) |
| CMYK | cmyk(26.6%, 42%, 0%, 18.8%) |
| CIE-LAB | lab(56.70, 30.55, -40.56) |
| CIE-LCH | lch(56.70, 50.78, 306.99°) |
| OKLab | oklab(63.9% 0.0646 -0.1133) |
| OKLCH | oklch(63.9% 0.13 299.7) |
| XYZ | xyz(30.9253, 24.6132, 62.1409) |
| Luminance | 0.2461 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 3.70
Deep Lilac
#966EBD
ΔE00 4.31
Wisteria
#A87DC2
ΔE00 5.74
Soft Purple
#A66FB5
ΔE00 7.55
Light Urple
#B36FF6
ΔE00 7.62
Amethyst
#9B5FC0
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9878CF #AFCF78
analogous
#7884CF #9878CF #C478CF
triadic
#9878CF #CF9878 #78CF98
tetradic
#9878CF #CF7884 #AFCF78 #78CFC4
square
#9878CF #CF7884 #AFCF78 #78CFC4
split-complementary
#9878CF #CFC478 #84CF78
monochromatic
#593697 #764BBF #9878CF #BAA5DF #DDD2EF
Accessibility & contrast
On white
3.55
#9878CF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.92
#9878CF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9878CF
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9878CF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9878CF | 1.00 | 3.55 | 5.92 | 5.92 |
| #FFFFFF | 3.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6088D2
Deuteranopia (green-blind)
#6787CD
Tritanopia (blue-blind)
#8D879A
Achromatopsia (no color)
#888888
Design tokens & code
CSS
--color: #9878cf; /* rgb */ color: rgb(152, 120, 207); /* oklch */ color: oklch(63.9% 0.130 299.7);
Tailwind
colors: {
custom: {
50: '#b89fde',
500: '#9878cf',
950: '#000000',
},
}SCSS
$custom: #9878cf; $custom-light: #b89fde; $custom-dark: #000000;
JSON
{
"hex": "#9878cf",
"rgb": {
"r": 152,
"g": 120,
"b": 207
},
"hsl": {
"h": 262.069,
"s": 47.541,
"l": 64.118
},
"oklch": {
"l": 0.63897,
"c": 0.13042,
"h": 299.7
},
"luminance": 0.24613
}Semantic roles & 50–950 ramp
primary
#9878CF
secondary
#D5E1C2
accent
#BB2B86
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83