#9845B2#9845B2
#9845B2 is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.3% C 0.178 H 317.3°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #9845B2 |
|---|---|
| RGB | rgb(152, 69, 178) |
| HSL | hsl(286, 44%, 48%) |
| HSV | hsv(286, 61%, 70%) |
| CMYK | cmyk(14.6%, 61.2%, 0%, 30.2%) |
| CIE-LAB | lab(44.44, 51.55, -43.23) |
| CIE-LCH | lch(44.44, 67.28, 320.02°) |
| OKLab | oklab(54.31% 0.1312 -0.1209) |
| OKLCH | oklch(54.31% 0.178 317.3) |
| XYZ | xyz(23.1117, 14.1469, 43.6240) |
| Luminance | 0.1415 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.25
Medium Purple
#9E43A2
ΔE00 3.68
Ugly Purple
#A442A0
ΔE00 4.90
Darkorchid
#9932CC
ΔE00 5.21
Barney
#AC1DB8
ΔE00 5.43
Deep Lavender
#8D5EB7
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9845B2 #5FB245
analogous
#6145B2 #9845B2 #B24595
triadic
#9845B2 #B29845 #45B298
tetradic
#9845B2 #B26145 #5FB245 #4595B2
square
#9845B2 #B26145 #5FB245 #4595B2
split-complementary
#9845B2 #95B245 #45B261
monochromatic
#4D235A #723486 #9845B2 #B16EC7 #C99AD8
Accessibility & contrast
On white
5.48
#9845B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#9845B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9845B2
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9845B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9845B2 | 1.00 | 5.48 | 3.83 | 5.48 |
| #FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#486CAF
Tritanopia (blue-blind)
#975875
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #9845b2; /* rgb */ color: rgb(152, 69, 178); /* oklch */ color: oklch(54.3% 0.178 317.3);
Tailwind
colors: {
custom: {
50: '#b97ec9',
500: '#9845b2',
950: '#000000',
},
}SCSS
$custom: #9845b2; $custom-light: #b97ec9; $custom-dark: #000000;
JSON
{
"hex": "#9845b2",
"rgb": {
"r": 152,
"g": 69,
"b": 178
},
"hsl": {
"h": 285.688,
"s": 44.13,
"l": 48.431
},
"oklch": {
"l": 0.54313,
"c": 0.17837,
"h": 317.3
},
"luminance": 0.14146
}Semantic roles & 50–950 ramp
primary
#9845B2
secondary
#9CC48F
accent
#D45472
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82