#9838C8#9838C8
#9838C8 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.217 H 311.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #9838C8 |
|---|---|
| RGB | rgb(152, 56, 200) |
| HSL | hsl(280, 57%, 50%) |
| HSV | hsv(280, 72%, 78%) |
| CMYK | cmyk(24%, 72%, 0%, 21.6%) |
| CIE-LAB | lab(43.76, 61.85, -57.17) |
| CIE-LCH | lch(43.76, 84.22, 317.25°) |
| OKLab | oklab(54.26% 0.1444 -0.1616) |
| OKLCH | oklch(54.26% 0.217 311.8) |
| XYZ | xyz(24.7865, 13.6745, 55.9661) |
| Luminance | 0.1367 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkorchid
#9932CC
ΔE00 0.97
Purply
#983FB2
ΔE00 3.78
Vibrant Purple
#AD03DE
ΔE00 4.50
Blueviolet
#8A2BE2
ΔE00 5.06
Barney
#AC1DB8
ΔE00 5.25
Darkviolet
#9400D3
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9838C8 #68C838
analogous
#5038C8 #9838C8 #C838B0
triadic
#9838C8 #C89838 #38C898
tetradic
#9838C8 #C85038 #68C838 #38B0C8
square
#9838C8 #C85038 #68C838 #38B0C8
split-complementary
#9838C8 #B0C838 #38C850
monochromatic
#4F1D69 #742A99 #9838C8 #B168D5 #CA98E3
Accessibility & contrast
On white
5.62
#9838C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.73
#9838C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9838C8
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9838C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9838C8 | 1.00 | 5.62 | 3.73 | 5.62 |
| #FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#92587D
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9838c8; /* rgb */ color: rgb(152, 56, 200); /* oklch */ color: oklch(54.3% 0.217 311.8);
Tailwind
colors: {
custom: {
50: '#bb77d9',
500: '#9838c8',
950: '#000000',
},
}SCSS
$custom: #9838c8; $custom-light: #bb77d9; $custom-dark: #000000;
JSON
{
"hex": "#9838c8",
"rgb": {
"r": 152,
"g": 56,
"b": 200
},
"hsl": {
"h": 280,
"s": 56.693,
"l": 50.196
},
"oklch": {
"l": 0.54265,
"c": 0.21674,
"h": 311.8
},
"luminance": 0.13674
}Semantic roles & 50–950 ramp
primary
#9838C8
secondary
#A3CE8E
accent
#E0487B
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83