#9839B5#9839B5
#9839B5 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.1% C 0.198 H 317.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #9839B5 |
|---|---|
| RGB | rgb(152, 57, 181) |
| HSL | hsl(286, 52%, 47%) |
| HSV | hsv(286, 69%, 71%) |
| CMYK | cmyk(16%, 68.5%, 0%, 29%) |
| CIE-LAB | lab(42.67, 57.56, -47.83) |
| CIE-LCH | lch(42.67, 74.84, 320.28°) |
| OKLab | oklab(53.09% 0.1452 -0.1342) |
| OKLCH | oklch(53.09% 0.198 317.3) |
| XYZ | xyz(22.7513, 12.9388, 45.0061) |
| Luminance | 0.1294 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.25
Darkorchid
#9932CC
ΔE00 3.66
Barney
#AC1DB8
ΔE00 3.92
Medium Purple
#9E43A2
ΔE00 4.86
Ugly Purple
#A442A0
ΔE00 5.99
Vibrant Purple
#AD03DE
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9839B5 #56B539
analogous
#5A39B5 #9839B5 #B53994
triadic
#9839B5 #B59839 #39B598
tetradic
#9839B5 #B55A39 #56B539 #3994B5
square
#9839B5 #B55A39 #56B539 #3994B5
split-complementary
#9839B5 #94B539 #39B55A
monochromatic
#4A1C58 #712A86 #9839B5 #B35FCD #C98DDB
Accessibility & contrast
On white
5.85
#9839B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#9839B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9839B5
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9839B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9839B5 | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#3C68B2
Tritanopia (blue-blind)
#975173
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #9839b5; /* rgb */ color: rgb(152, 57, 181); /* oklch */ color: oklch(53.1% 0.198 317.3);
Tailwind
colors: {
custom: {
50: '#ba77cc',
500: '#9839b5',
950: '#000000',
},
}SCSS
$custom: #9839b5; $custom-light: #ba77cc; $custom-dark: #000000;
JSON
{
"hex": "#9839b5",
"rgb": {
"r": 152,
"g": 57,
"b": 181
},
"hsl": {
"h": 285.968,
"s": 52.101,
"l": 46.667
},
"oklch": {
"l": 0.53092,
"c": 0.19775,
"h": 317.3
},
"luminance": 0.12938
}Semantic roles & 50–950 ramp
primary
#9839B5
secondary
#93C684
accent
#DC4C6E
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120913
muted
#817B82