#9A31AA#9A31AA
#9A31AA is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.9% C 0.199 H 322.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #9A31AA |
|---|---|
| RGB | rgb(154, 49, 170) |
| HSL | hsl(292, 55%, 43%) |
| HSV | hsv(292, 71%, 67%) |
| CMYK | cmyk(9.4%, 71.2%, 0%, 33.3%) |
| CIE-LAB | lab(41.17, 59.08, -43.70) |
| CIE-LCH | lch(41.17, 73.49, 323.51°) |
| OKLab | oklab(51.86% 0.1566 -0.1221) |
| OKLCH | oklch(51.86% 0.199 322.1) |
| XYZ | xyz(21.6797, 11.9701, 39.1910) |
| Luminance | 0.1197 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.80
Barney
#AC1DB8
ΔE00 3.37
Medium Purple
#9E43A2
ΔE00 4.26
Warm Purple
#952E8F
ΔE00 4.85
Barney Purple
#A00498
ΔE00 5.04
Ugly Purple
#A442A0
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A31AA #41AA31
analogous
#5D31AA #9A31AA #AA317D
triadic
#9A31AA #AA9A31 #31AA9A
tetradic
#9A31AA #AA5D31 #41AA31 #317DAA
square
#9A31AA #AA5D31 #41AA31 #317DAA
split-complementary
#9A31AA #7DAA31 #31AA5D
monochromatic
#44164B #6F237A #9A31AA #BB4DCC #CD7CD9
Accessibility & contrast
On white
6.19
#9A31AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#9A31AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A31AA
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A31AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A31AA | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#4165A7
Tritanopia (blue-blind)
#9C476A
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #9a31aa; /* rgb */ color: rgb(154, 49, 170); /* oklch */ color: oklch(51.9% 0.199 322.1);
Tailwind
colors: {
custom: {
50: '#bb73c4',
500: '#9a31aa',
950: '#000000',
},
}SCSS
$custom: #9a31aa; $custom-light: #bb73c4; $custom-dark: #000000;
JSON
{
"hex": "#9a31aa",
"rgb": {
"r": 154,
"g": 49,
"b": 170
},
"hsl": {
"h": 292.066,
"s": 55.251,
"l": 42.941
},
"oklch": {
"l": 0.51862,
"c": 0.19858,
"h": 322.1
},
"luminance": 0.11969
}Semantic roles & 50–950 ramp
primary
#9A31AA
secondary
#7FC275
accent
#DF495D
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82