#9839B2#9839B2
#9839B2 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.9% C 0.195 H 318.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #9839B2 |
|---|---|
| RGB | rgb(152, 57, 178) |
| HSL | hsl(287, 51%, 46%) |
| HSV | hsv(287, 68%, 70%) |
| CMYK | cmyk(14.6%, 68%, 0%, 30.2%) |
| CIE-LAB | lab(42.49, 56.96, -46.35) |
| CIE-LCH | lch(42.49, 73.44, 320.86°) |
| OKLab | oklab(52.9% 0.1454 -0.1299) |
| OKLCH | oklch(52.9% 0.195 318.2) |
| XYZ | xyz(22.4468, 12.8170, 43.4024) |
| Luminance | 0.1282 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.13
Barney
#AC1DB8
ΔE00 3.87
Darkorchid
#9932CC
ΔE00 4.16
Medium Purple
#9E43A2
ΔE00 4.45
Ugly Purple
#A442A0
ΔE00 5.60
Warm Purple
#952E8F
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9839B2 #53B239
analogous
#5B39B2 #9839B2 #B2398F
triadic
#9839B2 #B29839 #39B298
tetradic
#9839B2 #B25B39 #53B239 #398FB2
square
#9839B2 #B25B39 #53B239 #398FB2
split-complementary
#9839B2 #8FB239 #39B25B
monochromatic
#491B55 #702A84 #9839B2 #B35DCB #C98BDA
Accessibility & contrast
On white
5.89
#9839B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#9839B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9839B2
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9839B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9839B2 | 1.00 | 5.89 | 3.56 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#3F67AF
Tritanopia (blue-blind)
#974F71
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #9839b2; /* rgb */ color: rgb(152, 57, 178); /* oklch */ color: oklch(52.9% 0.195 318.2);
Tailwind
colors: {
custom: {
50: '#ba77ca',
500: '#9839b2',
950: '#000000',
},
}SCSS
$custom: #9839b2; $custom-light: #ba77ca; $custom-dark: #000000;
JSON
{
"hex": "#9839b2",
"rgb": {
"r": 152,
"g": 57,
"b": 178
},
"hsl": {
"h": 287.107,
"s": 51.489,
"l": 46.078
},
"oklch": {
"l": 0.529,
"c": 0.19496,
"h": 318.2
},
"luminance": 0.12816
}Semantic roles & 50–950 ramp
primary
#9839B2
secondary
#91C482
accent
#DB4D6B
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120913
muted
#817B82