#9851CB#9851CB
#9851CB is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.4% C 0.187 H 308.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).
Color values
| HEX | #9851CB |
|---|---|
| RGB | rgb(152, 81, 203) |
| HSL | hsl(275, 54%, 56%) |
| HSV | hsv(275, 60%, 80%) |
| CMYK | cmyk(25.1%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(48.10, 51.05, -51.93) |
| CIE-LCH | lch(48.10, 72.81, 314.51°) |
| OKLab | oklab(57.45% 0.1163 -0.1464) |
| OKLCH | oklch(57.45% 0.187 308.5) |
| XYZ | xyz(26.6687, 16.8725, 58.3401) |
| Luminance | 0.1687 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 4.36
Lightish Purple
#A552E6
ΔE00 4.50
Deep Lavender
#8D5EB7
ΔE00 4.90
Purpley
#8756E4
ΔE00 5.58
Purply
#983FB2
ΔE00 5.88
Darkorchid
#9932CC
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9851CB #84CB51
analogous
#5B51CB #9851CB #CB51C1
triadic
#9851CB #CB9851 #51CB98
tetradic
#9851CB #CB5B51 #84CB51 #51C1CB
square
#9851CB #CB5B51 #84CB51 #51C1CB
split-complementary
#9851CB #C1CB51 #51CB5B
monochromatic
#58257C #7933AC #9851CB #B480D9 #D0AFE7
Accessibility & contrast
On white
4.80
#9851CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.37
#9851CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9851CB
4.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9851CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9851CB | 1.00 | 4.80 | 4.37 | 4.80 |
| #FFFFFF | 4.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D6FCF
Deuteranopia (green-blind)
#3F73C8
Tritanopia (blue-blind)
#916986
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #9851cb; /* rgb */ color: rgb(152, 81, 203); /* oklch */ color: oklch(57.4% 0.187 308.5);
Tailwind
colors: {
custom: {
50: '#ba85db',
500: '#9851cb',
950: '#000000',
},
}SCSS
$custom: #9851cb; $custom-light: #ba85db; $custom-dark: #000000;
JSON
{
"hex": "#9851cb",
"rgb": {
"r": 152,
"g": 81,
"b": 203
},
"hsl": {
"h": 274.918,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.57445,
"c": 0.18696,
"h": 308.5
},
"luminance": 0.16872
}Semantic roles & 50–950 ramp
primary
#9851CB
secondary
#B8D5A3
accent
#DD4A88
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83