#9A2A8A#9A2A8A
#9A2A8A is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.4% C 0.181 H 334.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).
Color values
| HEX | #9A2A8A |
|---|---|
| RGB | rgb(154, 42, 138) |
| HSL | hsl(309, 57%, 38%) |
| HSV | hsv(309, 73%, 60%) |
| CMYK | cmyk(0%, 72.7%, 10.4%, 39.6%) |
| CIE-LAB | lab(38.49, 56.17, -28.61) |
| CIE-LCH | lch(38.49, 63.04, 333.01°) |
| OKLab | oklab(49.36% 0.1633 -0.0783) |
| OKLCH | oklch(49.36% 0.181 334.4) |
| XYZ | xyz(18.7420, 10.3625, 25.0529) |
| Luminance | 0.1036 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 1.68
Barney Purple
#A00498
ΔE00 3.92
Light Eggplant
#894585
ΔE00 5.77
Ugly Purple
#A442A0
ΔE00 6.00
Darkmagenta
#8B008B
ΔE00 6.05
Medium Purple
#9E43A2
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A2A8A #2A9A3A
analogous
#722A9A #9A2A8A #9A2A52
triadic
#9A2A8A #8A9A2A #2A8A9A
tetradic
#9A2A8A #9A722A #2A9A3A #2A529A
square
#9A2A8A #9A722A #2A9A3A #2A529A
split-complementary
#9A2A8A #529A2A #2A9A72
monochromatic
#3A1034 #6A1D5F #9A2A8A #C938B4 #D668C6
Accessibility & contrast
On white
6.84
#9A2A8A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#9A2A8A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A2A8A
6.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A2A8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A2A8A | 1.00 | 6.84 | 3.07 | 6.84 |
| #FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28508D
Deuteranopia (green-blind)
#506087
Tritanopia (blue-blind)
#A13457
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #9a2a8a; /* rgb */ color: rgb(154, 42, 138); /* oklch */ color: oklch(49.4% 0.181 334.4);
Tailwind
colors: {
custom: {
50: '#bb6fac',
500: '#9a2a8a',
950: '#000000',
},
}SCSS
$custom: #9a2a8a; $custom-light: #bb6fac; $custom-dark: #000000;
JSON
{
"hex": "#9a2a8a",
"rgb": {
"r": 154,
"g": 42,
"b": 138
},
"hsl": {
"h": 308.571,
"s": 57.143,
"l": 38.431
},
"oklch": {
"l": 0.49359,
"c": 0.18105,
"h": 334.4
},
"luminance": 0.10361
}Semantic roles & 50–950 ramp
primary
#9A2A8A
secondary
#63BC70
accent
#E05D47
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F