#9836B0#9836B0
#9836B0 is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.5% C 0.197 H 319.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #9836B0 |
|---|---|
| RGB | rgb(152, 54, 176) |
| HSL | hsl(288, 53%, 45%) |
| HSV | hsv(288, 69%, 69%) |
| CMYK | cmyk(13.6%, 69.3%, 0%, 31%) |
| CIE-LAB | lab(41.92, 57.81, -46.07) |
| CIE-LCH | lch(41.92, 73.93, 321.45°) |
| OKLab | oklab(52.46% 0.1487 -0.1291) |
| OKLCH | oklch(52.46% 0.197 319) |
| XYZ | xyz(22.1035, 12.4494, 42.3046) |
| Luminance | 0.1245 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.69
Barney
#AC1DB8
ΔE00 3.65
Darkorchid
#9932CC
ΔE00 4.42
Medium Purple
#9E43A2
ΔE00 4.52
Ugly Purple
#A442A0
ΔE00 5.63
Warm Purple
#952E8F
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9836B0 #4EB036
analogous
#5B36B0 #9836B0 #B0368B
triadic
#9836B0 #B09836 #36B098
tetradic
#9836B0 #B05B36 #4EB036 #368BB0
square
#9836B0 #B05B36 #4EB036 #368BB0
split-complementary
#9836B0 #8BB036 #36B05B
monochromatic
#471952 #702881 #9836B0 #B558CC #CA86DA
Accessibility & contrast
On white
6.02
#9836B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#9836B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9836B0
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9836B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9836B0 | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#3E66AD
Tritanopia (blue-blind)
#984D6F
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #9836b0; /* rgb */ color: rgb(152, 54, 176); /* oklch */ color: oklch(52.5% 0.197 319.0);
Tailwind
colors: {
custom: {
50: '#ba75c8',
500: '#9836b0',
950: '#000000',
},
}SCSS
$custom: #9836b0; $custom-light: #ba75c8; $custom-dark: #000000;
JSON
{
"hex": "#9836b0",
"rgb": {
"r": 152,
"g": 54,
"b": 176
},
"hsl": {
"h": 288.197,
"s": 53.043,
"l": 45.098
},
"oklch": {
"l": 0.52456,
"c": 0.19693,
"h": 319
},
"luminance": 0.12448
}Semantic roles & 50–950 ramp
primary
#9836B0
secondary
#8CC47E
accent
#DC4B68
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82