#9847B2#9847B2
#9847B2 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.6% C 0.175 H 317.2°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #9847B2 |
|---|---|
| RGB | rgb(152, 71, 178) |
| HSL | hsl(285, 43%, 49%) |
| HSV | hsv(285, 60%, 70%) |
| CMYK | cmyk(14.6%, 60.1%, 0%, 30.2%) |
| CIE-LAB | lab(44.80, 50.59, -42.67) |
| CIE-LCH | lch(44.80, 66.18, 319.86°) |
| OKLab | oklab(54.57% 0.1286 -0.1192) |
| OKLCH | oklch(54.57% 0.175 317.2) |
| XYZ | xyz(23.2369, 14.3971, 43.6657) |
| Luminance | 0.1440 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.69
Medium Purple
#9E43A2
ΔE00 3.69
Ugly Purple
#A442A0
ΔE00 4.89
Darkorchid
#9932CC
ΔE00 5.50
Barney
#AC1DB8
ΔE00 5.78
Deep Lavender
#8D5EB7
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9847B2 #61B247
analogous
#6347B2 #9847B2 #B24797
triadic
#9847B2 #B29847 #47B298
tetradic
#9847B2 #B26347 #61B247 #4797B2
square
#9847B2 #B26347 #61B247 #4797B2
split-complementary
#9847B2 #97B247 #47B263
monochromatic
#4D245B #733686 #9847B2 #B170C6 #C99CD7
Accessibility & contrast
On white
5.41
#9847B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#9847B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9847B2
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9847B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9847B2 | 1.00 | 5.41 | 3.88 | 5.41 |
| #FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#4A6CAF
Tritanopia (blue-blind)
#975976
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #9847b2; /* rgb */ color: rgb(152, 71, 178); /* oklch */ color: oklch(54.6% 0.175 317.2);
Tailwind
colors: {
custom: {
50: '#b97fc9',
500: '#9847b2',
950: '#000000',
},
}SCSS
$custom: #9847b2; $custom-light: #b97fc9; $custom-dark: #000000;
JSON
{
"hex": "#9847b2",
"rgb": {
"r": 152,
"g": 71,
"b": 178
},
"hsl": {
"h": 285.421,
"s": 42.972,
"l": 48.824
},
"oklch": {
"l": 0.54571,
"c": 0.1754,
"h": 317.2
},
"luminance": 0.14396
}Semantic roles & 50–950 ramp
primary
#9847B2
secondary
#9DC491
accent
#D35574
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82