#9838B5#9838B5
#9838B5 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 53.0% C 0.199 H 317.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #9838B5 |
|---|---|
| RGB | rgb(152, 56, 181) |
| HSL | hsl(286, 53%, 46%) |
| HSV | hsv(286, 69%, 71%) |
| CMYK | cmyk(16%, 69.1%, 0%, 29%) |
| CIE-LAB | lab(42.52, 57.98, -48.06) |
| CIE-LCH | lch(42.52, 75.31, 320.34°) |
| OKLab | oklab(52.99% 0.1463 -0.1349) |
| OKLCH | oklch(52.99% 0.199 317.3) |
| XYZ | xyz(22.7023, 12.8409, 44.9898) |
| Luminance | 0.1284 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.41
Darkorchid
#9932CC
ΔE00 3.63
Barney
#AC1DB8
ΔE00 3.84
Medium Purple
#9E43A2
ΔE00 4.95
Ugly Purple
#A442A0
ΔE00 6.07
Vibrant Purple
#AD03DE
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9838B5 #55B538
analogous
#5A38B5 #9838B5 #B53894
triadic
#9838B5 #B59838 #38B598
tetradic
#9838B5 #B55A38 #55B538 #3894B5
square
#9838B5 #B55A38 #55B538 #3894B5
split-complementary
#9838B5 #94B538 #38B55A
monochromatic
#4A1B58 #712A86 #9838B5 #B35DCD #C98CDB
Accessibility & contrast
On white
5.89
#9838B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#9838B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9838B5
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9838B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9838B5 | 1.00 | 5.89 | 3.57 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#3B67B2
Tritanopia (blue-blind)
#975072
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #9838b5; /* rgb */ color: rgb(152, 56, 181); /* oklch */ color: oklch(53.0% 0.199 317.3);
Tailwind
colors: {
custom: {
50: '#ba77cc',
500: '#9838b5',
950: '#000000',
},
}SCSS
$custom: #9838b5; $custom-light: #ba77cc; $custom-dark: #000000;
JSON
{
"hex": "#9838b5",
"rgb": {
"r": 152,
"g": 56,
"b": 181
},
"hsl": {
"h": 286.08,
"s": 52.743,
"l": 46.471
},
"oklch": {
"l": 0.52986,
"c": 0.19901,
"h": 317.3
},
"luminance": 0.1284
}Semantic roles & 50–950 ramp
primary
#9838B5
secondary
#92C683
accent
#DC4C6D
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120913
muted
#817B82