#9841B2#9841B2
#9841B2 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.8% C 0.184 H 317.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #9841B2 |
|---|---|
| RGB | rgb(152, 65, 178) |
| HSL | hsl(286, 47%, 48%) |
| HSV | hsv(286, 63%, 70%) |
| CMYK | cmyk(14.6%, 63.5%, 0%, 30.2%) |
| CIE-LAB | lab(43.76, 53.43, -44.32) |
| CIE-LCH | lch(43.76, 69.42, 320.32°) |
| OKLab | oklab(53.82% 0.1361 -0.124) |
| OKLCH | oklch(53.82% 0.184 317.7) |
| XYZ | xyz(22.8739, 13.6713, 43.5448) |
| Luminance | 0.1367 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 0.40
Medium Purple
#9E43A2
ΔE00 3.80
Darkorchid
#9932CC
ΔE00 4.73
Barney
#AC1DB8
ΔE00 4.80
Ugly Purple
#A442A0
ΔE00 5.03
Warm Purple
#952E8F
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9841B2 #5BB241
analogous
#6041B2 #9841B2 #B24193
triadic
#9841B2 #B29841 #41B298
tetradic
#9841B2 #B26041 #5BB241 #4193B2
square
#9841B2 #B26041 #5BB241 #4193B2
split-complementary
#9841B2 #93B241 #41B260
monochromatic
#4B2058 #723185 #9841B2 #B268C8 #C995D8
Accessibility & contrast
On white
5.62
#9841B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.73
#9841B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9841B2
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9841B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9841B2 | 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)
#1D62B5
Deuteranopia (green-blind)
#456AAF
Tritanopia (blue-blind)
#975574
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9841b2; /* rgb */ color: rgb(152, 65, 178); /* oklch */ color: oklch(53.8% 0.184 317.7);
Tailwind
colors: {
custom: {
50: '#b97bc9',
500: '#9841b2',
950: '#000000',
},
}SCSS
$custom: #9841b2; $custom-light: #b97bc9; $custom-dark: #000000;
JSON
{
"hex": "#9841b2",
"rgb": {
"r": 152,
"g": 65,
"b": 178
},
"hsl": {
"h": 286.195,
"s": 46.502,
"l": 47.647
},
"oklch": {
"l": 0.53817,
"c": 0.18414,
"h": 317.7
},
"luminance": 0.1367
}Semantic roles & 50–950 ramp
primary
#9841B2
secondary
#98C48B
accent
#D65270
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120A13
muted
#817C82