#9839AF#9839AF
#9839AF is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.7% C 0.192 H 319.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #9839AF |
|---|---|
| RGB | rgb(152, 57, 175) |
| HSL | hsl(288, 51%, 45%) |
| HSV | hsv(288, 67%, 69%) |
| CMYK | cmyk(13.1%, 67.4%, 0%, 31.4%) |
| CIE-LAB | lab(42.30, 56.37, -44.87) |
| CIE-LCH | lch(42.30, 72.05, 321.48°) |
| OKLab | oklab(52.71% 0.1455 -0.1256) |
| OKLCH | oklch(52.71% 0.192 319.2) |
| XYZ | xyz(22.1489, 12.6978, 41.8334) |
| Luminance | 0.1270 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.24
Barney
#AC1DB8
ΔE00 3.88
Medium Purple
#9E43A2
ΔE00 4.05
Darkorchid
#9932CC
ΔE00 4.67
Ugly Purple
#A442A0
ΔE00 5.21
Warm Purple
#952E8F
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9839AF #50AF39
analogous
#5D39AF #9839AF #AF398B
triadic
#9839AF #AF9839 #39AF98
tetradic
#9839AF #AF5D39 #50AF39 #398BAF
square
#9839AF #AF5D39 #50AF39 #398BAF
split-complementary
#9839AF #8BAF39 #39AF5D
monochromatic
#481B53 #702A81 #9839AF #B45BCA #C98AD9
Accessibility & contrast
On white
5.93
#9839AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#9839AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9839AF
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9839AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9839AF | 1.00 | 5.93 | 3.54 | 5.93 |
| #FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A5DB2
Deuteranopia (green-blind)
#4167AC
Tritanopia (blue-blind)
#984E6F
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #9839af; /* rgb */ color: rgb(152, 57, 175); /* oklch */ color: oklch(52.7% 0.192 319.2);
Tailwind
colors: {
custom: {
50: '#ba77c7',
500: '#9839af',
950: '#000000',
},
}SCSS
$custom: #9839af; $custom-light: #ba77c7; $custom-dark: #000000;
JSON
{
"hex": "#9839af",
"rgb": {
"r": 152,
"g": 57,
"b": 175
},
"hsl": {
"h": 288.305,
"s": 50.862,
"l": 45.49
},
"oklch": {
"l": 0.52711,
"c": 0.19219,
"h": 319.2
},
"luminance": 0.12697
}Semantic roles & 50–950 ramp
primary
#9839AF
secondary
#8EC381
accent
#DA4D69
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120913
muted
#817B82