#9840AA#9840AA
#9840AA is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.2% C 0.178 H 320.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #9840AA |
|---|---|
| RGB | rgb(152, 64, 170) |
| HSL | hsl(290, 45%, 46%) |
| HSV | hsv(290, 62%, 67%) |
| CMYK | cmyk(10.6%, 62.4%, 0%, 33.3%) |
| CIE-LAB | lab(43.13, 52.29, -40.59) |
| CIE-LCH | lch(43.13, 66.20, 322.18°) |
| OKLab | oklab(53.21% 0.1372 -0.1131) |
| OKLCH | oklch(53.21% 0.178 320.5) |
| XYZ | xyz(22.0371, 13.2455, 39.4183) |
| Luminance | 0.1324 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.49
Medium Purple
#9E43A2
ΔE00 2.60
Ugly Purple
#A442A0
ΔE00 3.93
Barney
#AC1DB8
ΔE00 4.86
Warm Purple
#952E8F
ΔE00 5.81
Darkorchid
#9932CC
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9840AA #52AA40
analogous
#6340AA #9840AA #AA4087
triadic
#9840AA #AA9840 #40AA98
tetradic
#9840AA #AA6340 #52AA40 #4087AA
square
#9840AA #AA6340 #52AA40 #4087AA
split-complementary
#9840AA #87AA40 #40AA63
monochromatic
#481F51 #702F7E #9840AA #B463C4 #C98FD5
Accessibility & contrast
On white
5.76
#9840AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#9840AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9840AA
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9840AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9840AA | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2660AD
Deuteranopia (green-blind)
#4A69A7
Tritanopia (blue-blind)
#99516F
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #9840aa; /* rgb */ color: rgb(152, 64, 170); /* oklch */ color: oklch(53.2% 0.178 320.5);
Tailwind
colors: {
custom: {
50: '#b97ac4',
500: '#9840aa',
950: '#000000',
},
}SCSS
$custom: #9840aa; $custom-light: #b97ac4; $custom-dark: #000000;
JSON
{
"hex": "#9840aa",
"rgb": {
"r": 152,
"g": 64,
"b": 170
},
"hsl": {
"h": 289.811,
"s": 45.299,
"l": 45.882
},
"oklch": {
"l": 0.53214,
"c": 0.17786,
"h": 320.5
},
"luminance": 0.13244
}Semantic roles & 50–950 ramp
primary
#9840AA
secondary
#90C086
accent
#D55369
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A12
muted
#817C81