#8A2EAA#8A2EAA
#8A2EAA is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.196 H 315.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2EAA |
|---|---|
| RGB | rgb(138, 46, 170) |
| HSL | hsl(285, 57%, 42%) |
| HSV | hsv(285, 73%, 67%) |
| CMYK | cmyk(18.8%, 72.9%, 0%, 33.3%) |
| CIE-LAB | lab(38.31, 56.80, -48.43) |
| CIE-LCH | lch(38.31, 74.64, 319.55°) |
| OKLab | oklab(49.33% 0.1401 -0.1364) |
| OKLCH | oklch(49.33% 0.196 315.8) |
| XYZ | xyz(18.7128, 10.2603, 39.0171) |
| Luminance | 0.1026 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.02
Purply
#983FB2
ΔE00 4.70
Darkorchid
#9932CC
ΔE00 5.65
Barney
#AC1DB8
ΔE00 5.94
Darkviolet
#9400D3
ΔE00 6.18
Barney Purple
#A00498
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2EAA #4EAA2E
analogous
#4C2EAA #8A2EAA #AA2E8C
triadic
#8A2EAA #AA8A2E #2EAA8A
tetradic
#8A2EAA #AA4C2E #4EAA2E #2E8CAA
square
#8A2EAA #AA4C2E #4EAA2E #2E8CAA
split-complementary
#8A2EAA #8CAA2E #2EAA4C
monochromatic
#3C144A #63217A #8A2EAA #AB48CD #C178DA
Accessibility & contrast
On white
6.88
#8A2EAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#8A2EAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2EAA
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2EAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2EAA | 1.00 | 6.88 | 3.05 | 6.88 |
| #FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#2C5DA7
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8a2eaa; /* rgb */ color: rgb(138, 46, 170); /* oklch */ color: oklch(49.3% 0.196 315.8);
Tailwind
colors: {
custom: {
50: '#b070c4',
500: '#8a2eaa',
950: '#000000',
},
}SCSS
$custom: #8a2eaa; $custom-light: #b070c4; $custom-dark: #000000;
JSON
{
"hex": "#8a2eaa",
"rgb": {
"r": 138,
"g": 46,
"b": 170
},
"hsl": {
"h": 284.516,
"s": 57.407,
"l": 42.353
},
"oklch": {
"l": 0.49326,
"c": 0.19554,
"h": 315.8
},
"luminance": 0.1026
}Semantic roles & 50–950 ramp
primary
#8A2EAA
secondary
#86C371
accent
#E1476F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82