#8A2AA4#8A2AA4
#8A2AA4 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.195 H 318.0°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2AA4 |
|---|---|
| RGB | rgb(138, 42, 164) |
| HSL | hsl(287, 59%, 40%) |
| HSV | hsv(287, 74%, 64%) |
| CMYK | cmyk(15.9%, 74.4%, 0%, 35.7%) |
| CIE-LAB | lab(37.37, 57.13, -46.33) |
| CIE-LCH | lch(37.37, 73.55, 320.96°) |
| OKLab | oklab(48.54% 0.1447 -0.1302) |
| OKLCH | oklch(48.54% 0.195 318) |
| XYZ | xyz(18.0091, 9.7404, 36.0462) |
| Luminance | 0.0974 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.26
Barney Purple
#A00498
ΔE00 5.39
Purply
#983FB2
ΔE00 5.41
Warm Purple
#952E8F
ΔE00 5.50
Darkmagenta
#8B008B
ΔE00 5.71
Barney
#AC1DB8
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2AA4 #44A42A
analogous
#4D2AA4 #8A2AA4 #A42A81
triadic
#8A2AA4 #A48A2A #2AA48A
tetradic
#8A2AA4 #A44D2A #44A42A #2A81A4
square
#8A2AA4 #A44D2A #44A42A #2A81A4
split-complementary
#8A2AA4 #81A42A #2AA44D
monochromatic
#381143 #611E73 #8A2AA4 #AF3ECD #C36EDA
Accessibility & contrast
On white
7.12
#8A2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#8A2AA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2AA4
7.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2AA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2AA4 | 1.00 | 7.12 | 2.95 | 7.12 |
| #FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#2F5BA1
Tritanopia (blue-blind)
#894365
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #8a2aa4; /* rgb */ color: rgb(138, 42, 164); /* oklch */ color: oklch(48.5% 0.195 318.0);
Tailwind
colors: {
custom: {
50: '#b06ec0',
500: '#8a2aa4',
950: '#000000',
},
}SCSS
$custom: #8a2aa4; $custom-light: #b06ec0; $custom-dark: #000000;
JSON
{
"hex": "#8a2aa4",
"rgb": {
"r": 138,
"g": 42,
"b": 164
},
"hsl": {
"h": 287.213,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.48536,
"c": 0.19466,
"h": 318
},
"luminance": 0.0974
}Semantic roles & 50–950 ramp
primary
#8A2AA4
secondary
#7CC169
accent
#E24567
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81