#9852CB#9852CB
#9852CB is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.6% C 0.185 H 308.3°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #9852CB |
|---|---|
| RGB | rgb(152, 82, 203) |
| HSL | hsl(275, 54%, 56%) |
| HSV | hsv(275, 60%, 80%) |
| CMYK | cmyk(25.1%, 59.6%, 0%, 20.4%) |
| CIE-LAB | lab(48.29, 50.54, -51.62) |
| CIE-LCH | lch(48.29, 72.24, 314.39°) |
| OKLab | oklab(57.58% 0.1151 -0.1455) |
| OKLCH | oklch(57.58% 0.185 308.3) |
| XYZ | xyz(26.7435, 17.0222, 58.3651) |
| Luminance | 0.1702 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 4.16
Lightish Purple
#A552E6
ΔE00 4.43
Deep Lavender
#8D5EB7
ΔE00 4.75
Purpley
#8756E4
ΔE00 5.54
Purply
#983FB2
ΔE00 6.05
Darkorchid
#9932CC
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9852CB #85CB52
analogous
#5B52CB #9852CB #CB52C1
triadic
#9852CB #CB9852 #52CB98
tetradic
#9852CB #CB5B52 #85CB52 #52C1CB
square
#9852CB #CB5B52 #85CB52 #52C1CB
split-complementary
#9852CB #C1CB52 #52CB5B
monochromatic
#58267D #7934AC #9852CB #B481D9 #D0B0E7
Accessibility & contrast
On white
4.77
#9852CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.40
#9852CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9852CB
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9852CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9852CB | 1.00 | 4.77 | 4.40 | 4.77 |
| #FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2070CF
Deuteranopia (green-blind)
#4073C8
Tritanopia (blue-blind)
#906987
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #9852cb; /* rgb */ color: rgb(152, 82, 203); /* oklch */ color: oklch(57.6% 0.185 308.3);
Tailwind
colors: {
custom: {
50: '#ba86db',
500: '#9852cb',
950: '#000000',
},
}SCSS
$custom: #9852cb; $custom-light: #ba86db; $custom-dark: #000000;
JSON
{
"hex": "#9852cb",
"rgb": {
"r": 152,
"g": 82,
"b": 203
},
"hsl": {
"h": 274.711,
"s": 53.778,
"l": 55.882
},
"oklch": {
"l": 0.57583,
"c": 0.18549,
"h": 308.3
},
"luminance": 0.17022
}Semantic roles & 50–950 ramp
primary
#9852CB
secondary
#B8D5A3
accent
#DD4B88
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83