#8A2AA1#8A2AA1
#8A2AA1 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.192 H 319.0°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2AA1 |
|---|---|
| RGB | rgb(138, 42, 161) |
| HSL | hsl(288, 59%, 40%) |
| HSV | hsv(288, 74%, 63%) |
| CMYK | cmyk(14.3%, 73.9%, 0%, 36.9%) |
| CIE-LAB | lab(37.18, 56.54, -44.84) |
| CIE-LCH | lch(37.18, 72.17, 321.58°) |
| OKLab | oklab(48.33% 0.145 -0.1258) |
| OKLCH | oklch(48.33% 0.192 319) |
| XYZ | xyz(17.7414, 9.6333, 34.6362) |
| Luminance | 0.0963 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.23
Warm Purple
#952E8F
ΔE00 5.05
Barney Purple
#A00498
ΔE00 5.08
Darkmagenta
#8B008B
ΔE00 5.32
Purply
#983FB2
ΔE00 5.57
Barney
#AC1DB8
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2AA1 #41A12A
analogous
#4E2AA1 #8A2AA1 #A12A7D
triadic
#8A2AA1 #A18A2A #2AA18A
tetradic
#8A2AA1 #A14E2A #41A12A #2A7DA1
square
#8A2AA1 #A14E2A #41A12A #2A7DA1
split-complementary
#8A2AA1 #7DA12A #2AA14E
monochromatic
#371140 #601D70 #8A2AA1 #B03CCC #C46DD9
Accessibility & contrast
On white
7.18
#8A2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#8A2AA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2AA1
7.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2AA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2AA1 | 1.00 | 7.18 | 2.93 | 7.18 |
| #FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#325B9E
Tritanopia (blue-blind)
#8A4263
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #8a2aa1; /* rgb */ color: rgb(138, 42, 161); /* oklch */ color: oklch(48.3% 0.192 319.0);
Tailwind
colors: {
custom: {
50: '#b06dbd',
500: '#8a2aa1',
950: '#000000',
},
}SCSS
$custom: #8a2aa1; $custom-light: #b06dbd; $custom-dark: #000000;
JSON
{
"hex": "#8a2aa1",
"rgb": {
"r": 138,
"g": 42,
"b": 161
},
"hsl": {
"h": 288.403,
"s": 58.621,
"l": 39.804
},
"oklch": {
"l": 0.48333,
"c": 0.192,
"h": 319
},
"luminance": 0.09632
}Semantic roles & 50–950 ramp
primary
#8A2AA1
secondary
#78C067
accent
#E24664
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81