#9837B2#9837B2
#9837B2 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.7% C 0.198 H 318.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #9837B2 |
|---|---|
| RGB | rgb(152, 55, 178) |
| HSL | hsl(287, 53%, 46%) |
| HSV | hsv(287, 69%, 70%) |
| CMYK | cmyk(14.6%, 69.1%, 0%, 30.2%) |
| CIE-LAB | lab(42.19, 57.80, -46.83) |
| CIE-LCH | lch(42.19, 74.39, 320.99°) |
| OKLab | oklab(52.69% 0.1475 -0.1313) |
| OKLCH | oklch(52.69% 0.198 318.3) |
| XYZ | xyz(22.3499, 12.6231, 43.3701) |
| Luminance | 0.1262 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.49
Barney
#AC1DB8
ΔE00 3.71
Darkorchid
#9932CC
ΔE00 4.10
Medium Purple
#9E43A2
ΔE00 4.65
Ugly Purple
#A442A0
ΔE00 5.78
Warm Purple
#952E8F
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9837B2 #51B237
analogous
#5A37B2 #9837B2 #B2378E
triadic
#9837B2 #B29837 #37B298
tetradic
#9837B2 #B25A37 #51B237 #378EB2
square
#9837B2 #B25A37 #51B237 #378EB2
split-complementary
#9837B2 #8EB237 #37B25A
monochromatic
#481A54 #702983 #9837B2 #B45ACC #C989DB
Accessibility & contrast
On white
5.96
#9837B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#9837B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9837B2
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9837B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9837B2 | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#3D67AF
Tritanopia (blue-blind)
#974E70
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #9837b2; /* rgb */ color: rgb(152, 55, 178); /* oklch */ color: oklch(52.7% 0.198 318.3);
Tailwind
colors: {
custom: {
50: '#ba76ca',
500: '#9837b2',
950: '#000000',
},
}SCSS
$custom: #9837b2; $custom-light: #ba76ca; $custom-dark: #000000;
JSON
{
"hex": "#9837b2",
"rgb": {
"r": 152,
"g": 55,
"b": 178
},
"hsl": {
"h": 287.317,
"s": 52.79,
"l": 45.686
},
"oklch": {
"l": 0.52688,
"c": 0.1975,
"h": 318.3
},
"luminance": 0.12622
}Semantic roles & 50–950 ramp
primary
#9837B2
secondary
#8FC580
accent
#DC4C6A
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82