#9839B3#9839B3
#9839B3 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.0% C 0.196 H 317.9°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #9839B3 |
|---|---|
| RGB | rgb(152, 57, 179) |
| HSL | hsl(287, 52%, 46%) |
| HSV | hsv(287, 68%, 70%) |
| CMYK | cmyk(15.1%, 68.2%, 0%, 29.8%) |
| CIE-LAB | lab(42.55, 57.16, -46.84) |
| CIE-LCH | lch(42.55, 73.90, 320.67°) |
| OKLab | oklab(52.96% 0.1453 -0.1314) |
| OKLCH | oklch(52.96% 0.196 317.9) |
| XYZ | xyz(22.5476, 12.8573, 43.9331) |
| Luminance | 0.1286 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.15
Barney
#AC1DB8
ΔE00 3.88
Darkorchid
#9932CC
ΔE00 3.99
Medium Purple
#9E43A2
ΔE00 4.58
Ugly Purple
#A442A0
ΔE00 5.73
Vibrant Purple
#AD03DE
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9839B3 #54B339
analogous
#5B39B3 #9839B3 #B33991
triadic
#9839B3 #B39839 #39B398
tetradic
#9839B3 #B35B39 #54B339 #3991B3
square
#9839B3 #B35B39 #54B339 #3991B3
split-complementary
#9839B3 #91B339 #39B35B
monochromatic
#491B56 #712A85 #9839B3 #B35ECC #C98CDA
Accessibility & contrast
On white
5.88
#9839B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#9839B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9839B3
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9839B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9839B3 | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#3E67B0
Tritanopia (blue-blind)
#975072
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #9839b3; /* rgb */ color: rgb(152, 57, 179); /* oklch */ color: oklch(53.0% 0.196 317.9);
Tailwind
colors: {
custom: {
50: '#ba77ca',
500: '#9839b3',
950: '#000000',
},
}SCSS
$custom: #9839b3; $custom-light: #ba77ca; $custom-dark: #000000;
JSON
{
"hex": "#9839b3",
"rgb": {
"r": 152,
"g": 57,
"b": 179
},
"hsl": {
"h": 286.721,
"s": 51.695,
"l": 46.275
},
"oklch": {
"l": 0.52964,
"c": 0.19589,
"h": 317.9
},
"luminance": 0.12856
}Semantic roles & 50–950 ramp
primary
#9839B3
secondary
#92C583
accent
#DB4D6C
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120913
muted
#817B82