#8A2AA9#8A2AA9
#8A2AA9 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.199 H 316.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2AA9 |
|---|---|
| RGB | rgb(138, 42, 169) |
| HSL | hsl(285, 60%, 41%) |
| HSV | hsv(285, 75%, 66%) |
| CMYK | cmyk(18.3%, 75.1%, 0%, 33.7%) |
| CIE-LAB | lab(37.71, 58.11, -48.79) |
| CIE-LCH | lch(37.71, 75.88, 319.98°) |
| OKLab | oklab(48.88% 0.1441 -0.1374) |
| OKLCH | oklch(48.88% 0.199 316.4) |
| XYZ | xyz(18.4695, 9.9245, 38.4712) |
| Luminance | 0.0992 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.51
Purply
#983FB2
ΔE00 5.24
Barney Purple
#A00498
ΔE00 5.96
Darkorchid
#9932CC
ΔE00 6.02
Barney
#AC1DB8
ΔE00 6.06
Darkviolet
#9400D3
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2AA9 #49A92A
analogous
#4A2AA9 #8A2AA9 #A92A89
triadic
#8A2AA9 #A98A2A #2AA98A
tetradic
#8A2AA9 #A94A2A #49A92A #2A89A9
square
#8A2AA9 #A94A2A #49A92A #2A89A9
split-complementary
#8A2AA9 #89A92A #2AA94A
monochromatic
#3A1247 #621E78 #8A2AA9 #AD41D0 #C272DC
Accessibility & contrast
On white
7.04
#8A2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#8A2AA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2AA9
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2AA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2AA9 | 1.00 | 7.04 | 2.98 | 7.04 |
| #FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#2A5BA6
Tritanopia (blue-blind)
#884568
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #8a2aa9; /* rgb */ color: rgb(138, 42, 169); /* oklch */ color: oklch(48.9% 0.199 316.4);
Tailwind
colors: {
custom: {
50: '#b06ec3',
500: '#8a2aa9',
950: '#000000',
},
}SCSS
$custom: #8a2aa9; $custom-light: #b06ec3; $custom-dark: #000000;
JSON
{
"hex": "#8a2aa9",
"rgb": {
"r": 138,
"g": 42,
"b": 169
},
"hsl": {
"h": 285.354,
"s": 60.19,
"l": 41.373
},
"oklch": {
"l": 0.48879,
"c": 0.19914,
"h": 316.4
},
"luminance": 0.09924
}Semantic roles & 50–950 ramp
primary
#8A2AA9
secondary
#81C36C
accent
#E3446B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82