#9841B1#9841B1
#9841B1 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.8% C 0.183 H 318.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #9841B1 |
|---|---|
| RGB | rgb(152, 65, 177) |
| HSL | hsl(287, 46%, 47%) |
| HSV | hsv(287, 63%, 69%) |
| CMYK | cmyk(14.1%, 63.3%, 0%, 30.6%) |
| CIE-LAB | lab(43.70, 53.23, -43.82) |
| CIE-LCH | lch(43.70, 68.95, 320.53°) |
| OKLab | oklab(53.76% 0.1361 -0.1226) |
| OKLCH | oklch(53.76% 0.183 318) |
| XYZ | xyz(22.7739, 13.6313, 43.0179) |
| Luminance | 0.1363 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 0.45
Medium Purple
#9E43A2
ΔE00 3.64
Barney
#AC1DB8
ΔE00 4.80
Ugly Purple
#A442A0
ΔE00 4.88
Darkorchid
#9932CC
ΔE00 4.89
Warm Purple
#952E8F
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9841B1 #5AB141
analogous
#6041B1 #9841B1 #B14192
triadic
#9841B1 #B19841 #41B198
tetradic
#9841B1 #B16041 #5AB141 #4192B1
square
#9841B1 #B16041 #5AB141 #4192B1
split-complementary
#9841B1 #92B141 #41B160
monochromatic
#4B2057 #723184 #9841B1 #B268C7 #C995D8
Accessibility & contrast
On white
5.64
#9841B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.73
#9841B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9841B1
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9841B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9841B1 | 1.00 | 5.64 | 3.73 | 5.64 |
| #FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F62B4
Deuteranopia (green-blind)
#466AAE
Tritanopia (blue-blind)
#975473
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9841b1; /* rgb */ color: rgb(152, 65, 177); /* oklch */ color: oklch(53.8% 0.183 318.0);
Tailwind
colors: {
custom: {
50: '#b97bc9',
500: '#9841b1',
950: '#000000',
},
}SCSS
$custom: #9841b1; $custom-light: #b97bc9; $custom-dark: #000000;
JSON
{
"hex": "#9841b1",
"rgb": {
"r": 152,
"g": 65,
"b": 177
},
"hsl": {
"h": 286.607,
"s": 46.281,
"l": 47.451
},
"oklch": {
"l": 0.53756,
"c": 0.18317,
"h": 318
},
"luminance": 0.1363
}Semantic roles & 50–950 ramp
primary
#9841B1
secondary
#97C38A
accent
#D6526F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82