#9847BC#9847BC
#9847BC is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.2% C 0.186 H 313.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #9847BC |
|---|---|
| RGB | rgb(152, 71, 188) |
| HSL | hsl(282, 47%, 51%) |
| HSV | hsv(282, 62%, 74%) |
| CMYK | cmyk(19.1%, 62.2%, 0%, 26.3%) |
| CIE-LAB | lab(45.38, 52.69, -47.59) |
| CIE-LCH | lch(45.38, 71.00, 317.91°) |
| OKLab | oklab(55.18% 0.1287 -0.1336) |
| OKLCH | oklch(55.18% 0.186 313.9) |
| XYZ | xyz(24.2777, 14.8134, 49.1476) |
| Luminance | 0.1481 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.41
Darkorchid
#9932CC
ΔE00 4.31
Medium Purple
#9E43A2
ΔE00 5.38
Barney
#AC1DB8
ΔE00 6.03
Deep Lavender
#8D5EB7
ΔE00 6.06
Amethyst
#9B5FC0
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9847BC #6BBC47
analogous
#5D47BC #9847BC #BC47A6
triadic
#9847BC #BC9847 #47BC98
tetradic
#9847BC #BC5D47 #6BBC47 #47A6BC
square
#9847BC #BC5D47 #6BBC47 #47A6BC
split-complementary
#9847BC #A6BC47 #47BC5D
monochromatic
#512464 #753591 #9847BC #B174CC #CAA1DD
Accessibility & contrast
On white
5.30
#9847BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.96
#9847BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9847BC
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9847BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9847BC | 1.00 | 5.30 | 3.96 | 5.30 |
| #FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B67C0
Deuteranopia (green-blind)
#426DB9
Tritanopia (blue-blind)
#955D7B
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #9847bc; /* rgb */ color: rgb(152, 71, 188); /* oklch */ color: oklch(55.2% 0.186 313.9);
Tailwind
colors: {
custom: {
50: '#b97fd1',
500: '#9847bc',
950: '#000000',
},
}SCSS
$custom: #9847bc; $custom-light: #b97fd1; $custom-dark: #000000;
JSON
{
"hex": "#9847bc",
"rgb": {
"r": 152,
"g": 71,
"b": 188
},
"hsl": {
"h": 281.538,
"s": 46.614,
"l": 50.784
},
"oklch": {
"l": 0.5518,
"c": 0.18557,
"h": 313.9
},
"luminance": 0.14813
}Semantic roles & 50–950 ramp
primary
#9847BC
secondary
#A5C995
accent
#D6527A
background
#FBF8FC
surface
#F7EFF9
border
#D0CAD2
text
#120A14
muted
#817C82