#9862C8#9862C8
#9862C8 is a mid, vivid violet. Relative luminance 0.196; OKLCH L 59.8% C 0.157 H 306.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #9862C8 |
|---|---|
| RGB | rgb(152, 98, 200) |
| HSL | hsl(272, 48%, 58%) |
| HSV | hsv(272, 51%, 78%) |
| CMYK | cmyk(24%, 51%, 0%, 21.6%) |
| CIE-LAB | lab(51.36, 41.31, -45.00) |
| CIE-LCH | lch(51.36, 61.09, 312.55°) |
| OKLab | oklab(59.79% 0.0941 -0.1262) |
| OKLCH | oklch(59.79% 0.157 306.7) |
| XYZ | xyz(27.7398, 19.5812, 56.9506) |
| Luminance | 0.1958 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 1.93
Deep Lavender
#8D5EB7
ΔE00 3.55
Deep Lilac
#966EBD
ΔE00 4.36
Mediumpurple
#9370DB
ΔE00 5.47
Lightish Purple
#A552E6
ΔE00 5.72
Mediumorchid
#BA55D3
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9862C8 #92C862
analogous
#6562C8 #9862C8 #C862C5
triadic
#9862C8 #C89862 #62C898
tetradic
#9862C8 #C86562 #92C862 #62C5C8
square
#9862C8 #C86562 #92C862 #62C5C8
split-complementary
#9862C8 #C5C862 #62C865
monochromatic
#5A2E82 #7A3DAF #9862C8 #B68FD8 #D3BDE8
Accessibility & contrast
On white
4.27
#9862C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.92
#9862C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9862C8
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9862C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9862C8 | 1.00 | 4.27 | 4.92 | 4.92 |
| #FFFFFF | 4.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4478CC
Deuteranopia (green-blind)
#547BC5
Tritanopia (blue-blind)
#91748C
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #9862c8; /* rgb */ color: rgb(152, 98, 200); /* oklch */ color: oklch(59.8% 0.157 306.7);
Tailwind
colors: {
custom: {
50: '#b990d9',
500: '#9862c8',
950: '#000000',
},
}SCSS
$custom: #9862c8; $custom-light: #b990d9; $custom-dark: #000000;
JSON
{
"hex": "#9862c8",
"rgb": {
"r": 152,
"g": 98,
"b": 200
},
"hsl": {
"h": 271.765,
"s": 48.113,
"l": 58.431
},
"oklch": {
"l": 0.59787,
"c": 0.15739,
"h": 306.7
},
"luminance": 0.19581
}Semantic roles & 50–950 ramp
primary
#9862C8
secondary
#C2D7AF
accent
#D85090
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120D15
muted
#817D83