#9837AF#9837AF
#9837AF is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.5% C 0.195 H 319.3°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).
Color values
| HEX | #9837AF |
|---|---|
| RGB | rgb(152, 55, 175) |
| HSL | hsl(289, 52%, 45%) |
| HSV | hsv(289, 69%, 69%) |
| CMYK | cmyk(13.1%, 68.6%, 0%, 31.4%) |
| CIE-LAB | lab(42.01, 57.21, -45.35) |
| CIE-LCH | lch(42.01, 73.00, 321.60°) |
| OKLab | oklab(52.5% 0.1477 -0.127) |
| OKLCH | oklch(52.5% 0.195 319.3) |
| XYZ | xyz(22.0519, 12.5040, 41.8011) |
| Luminance | 0.1250 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.57
Barney
#AC1DB8
ΔE00 3.73
Medium Purple
#9E43A2
ΔE00 4.28
Darkorchid
#9932CC
ΔE00 4.62
Ugly Purple
#A442A0
ΔE00 5.41
Warm Purple
#952E8F
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9837AF #4EAF37
analogous
#5C37AF #9837AF #AF378A
triadic
#9837AF #AF9837 #37AF98
tetradic
#9837AF #AF5C37 #4EAF37 #378AAF
square
#9837AF #AF5C37 #4EAF37 #378AAF
split-complementary
#9837AF #8AAF37 #37AF5C
monochromatic
#471A52 #702880 #9837AF #B559CB #CA87D9
Accessibility & contrast
On white
6.00
#9837AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#9837AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9837AF
6.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9837AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9837AF | 1.00 | 6.00 | 3.50 | 6.00 |
| #FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#015DB2
Deuteranopia (green-blind)
#4066AC
Tritanopia (blue-blind)
#984D6F
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #9837af; /* rgb */ color: rgb(152, 55, 175); /* oklch */ color: oklch(52.5% 0.195 319.3);
Tailwind
colors: {
custom: {
50: '#ba76c7',
500: '#9837af',
950: '#000000',
},
}SCSS
$custom: #9837af; $custom-light: #ba76c7; $custom-dark: #000000;
JSON
{
"hex": "#9837af",
"rgb": {
"r": 152,
"g": 55,
"b": 175
},
"hsl": {
"h": 288.5,
"s": 52.174,
"l": 45.098
},
"oklch": {
"l": 0.52497,
"c": 0.19477,
"h": 319.3
},
"luminance": 0.12503
}Semantic roles & 50–950 ramp
primary
#9837AF
secondary
#8CC37F
accent
#DC4C68
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82