#8A2AA5#8A2AA5
#8A2AA5 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.196 H 317.7°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2AA5 |
|---|---|
| RGB | rgb(138, 42, 165) |
| HSL | hsl(287, 59%, 41%) |
| HSV | hsv(287, 75%, 65%) |
| CMYK | cmyk(16.4%, 74.5%, 0%, 35.3%) |
| CIE-LAB | lab(37.44, 57.32, -46.83) |
| CIE-LCH | lch(37.44, 74.02, 320.75°) |
| OKLab | oklab(48.6% 0.1446 -0.1316) |
| OKLCH | oklch(48.6% 0.196 317.7) |
| XYZ | xyz(18.0998, 9.7766, 36.5237) |
| Luminance | 0.0978 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.29
Purply
#983FB2
ΔE00 5.37
Barney Purple
#A00498
ΔE00 5.50
Warm Purple
#952E8F
ΔE00 5.65
Darkmagenta
#8B008B
ΔE00 5.85
Barney
#AC1DB8
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2AA5 #45A52A
analogous
#4C2AA5 #8A2AA5 #A52A82
triadic
#8A2AA5 #A58A2A #2AA58A
tetradic
#8A2AA5 #A54C2A #45A52A #2A82A5
square
#8A2AA5 #A54C2A #45A52A #2A82A5
split-complementary
#8A2AA5 #82A52A #2AA54C
monochromatic
#381143 #611E74 #8A2AA5 #AE3ECE #C36FDA
Accessibility & contrast
On white
7.11
#8A2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#8A2AA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2AA5
7.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2AA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2AA5 | 1.00 | 7.11 | 2.96 | 7.11 |
| #FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2E5BA2
Tritanopia (blue-blind)
#894466
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #8a2aa5; /* rgb */ color: rgb(138, 42, 165); /* oklch */ color: oklch(48.6% 0.196 317.7);
Tailwind
colors: {
custom: {
50: '#b06ec0',
500: '#8a2aa5',
950: '#000000',
},
}SCSS
$custom: #8a2aa5; $custom-light: #b06ec0; $custom-dark: #000000;
JSON
{
"hex": "#8a2aa5",
"rgb": {
"r": 138,
"g": 42,
"b": 165
},
"hsl": {
"h": 286.829,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.48604,
"c": 0.19555,
"h": 317.7
},
"luminance": 0.09776
}Semantic roles & 50–950 ramp
primary
#8A2AA5
secondary
#7DC169
accent
#E34568
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81