#9838B2#9838B2
#9838B2 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.8% C 0.196 H 318.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #9838B2 |
|---|---|
| RGB | rgb(152, 56, 178) |
| HSL | hsl(287, 52%, 46%) |
| HSV | hsv(287, 69%, 70%) |
| CMYK | cmyk(14.6%, 68.5%, 0%, 30.2%) |
| CIE-LAB | lab(42.34, 57.38, -46.59) |
| CIE-LCH | lch(42.34, 73.92, 320.93°) |
| OKLab | oklab(52.79% 0.1465 -0.1306) |
| OKLCH | oklch(52.79% 0.196 318.3) |
| XYZ | xyz(22.3978, 12.7191, 43.3861) |
| Luminance | 0.1272 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.31
Barney
#AC1DB8
ΔE00 3.79
Darkorchid
#9932CC
ΔE00 4.13
Medium Purple
#9E43A2
ΔE00 4.55
Ugly Purple
#A442A0
ΔE00 5.68
Warm Purple
#952E8F
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9838B2 #52B238
analogous
#5B38B2 #9838B2 #B2388F
triadic
#9838B2 #B29838 #38B298
tetradic
#9838B2 #B25B38 #52B238 #388FB2
square
#9838B2 #B25B38 #52B238 #388FB2
split-complementary
#9838B2 #8FB238 #38B25B
monochromatic
#481B55 #702983 #9838B2 #B45CCC #C98ADA
Accessibility & contrast
On white
5.93
#9838B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#9838B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9838B2
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9838B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9838B2 | 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)
#005EB6
Deuteranopia (green-blind)
#3E67AF
Tritanopia (blue-blind)
#974F71
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #9838b2; /* rgb */ color: rgb(152, 56, 178); /* oklch */ color: oklch(52.8% 0.196 318.3);
Tailwind
colors: {
custom: {
50: '#ba76ca',
500: '#9838b2',
950: '#000000',
},
}SCSS
$custom: #9838b2; $custom-light: #ba76ca; $custom-dark: #000000;
JSON
{
"hex": "#9838b2",
"rgb": {
"r": 152,
"g": 56,
"b": 178
},
"hsl": {
"h": 287.213,
"s": 52.137,
"l": 45.882
},
"oklch": {
"l": 0.52793,
"c": 0.19625,
"h": 318.3
},
"luminance": 0.12718
}Semantic roles & 50–950 ramp
primary
#9838B2
secondary
#90C581
accent
#DC4C6B
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82