#8A2EA7#8A2EA7
#8A2EA7 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.193 H 316.8°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2EA7 |
|---|---|
| RGB | rgb(138, 46, 167) |
| HSL | hsl(286, 57%, 42%) |
| HSV | hsv(286, 72%, 65%) |
| CMYK | cmyk(17.4%, 72.5%, 0%, 34.5%) |
| CIE-LAB | lab(38.11, 56.19, -46.95) |
| CIE-LCH | lch(38.11, 73.23, 320.12°) |
| OKLab | oklab(49.12% 0.1405 -0.132) |
| OKLCH | oklch(49.12% 0.193 316.8) |
| XYZ | xyz(18.4322, 10.1480, 37.5396) |
| Luminance | 0.1015 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.85
Purply
#983FB2
ΔE00 4.78
Warm Purple
#952E8F
ΔE00 5.83
Barney Purple
#A00498
ΔE00 5.91
Barney
#AC1DB8
ΔE00 6.00
Darkorchid
#9932CC
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2EA7 #4BA72E
analogous
#4E2EA7 #8A2EA7 #A72E88
triadic
#8A2EA7 #A78A2E #2EA78A
tetradic
#8A2EA7 #A74E2E #4BA72E #2E88A7
square
#8A2EA7 #A74E2E #4BA72E #2E88A7
split-complementary
#8A2EA7 #88A72E #2EA74E
monochromatic
#3B1447 #622177 #8A2EA7 #AC46CC #C276D9
Accessibility & contrast
On white
6.93
#8A2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#8A2EA7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2EA7
6.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2EA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2EA7 | 1.00 | 6.93 | 3.03 | 6.93 |
| #FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#2F5CA4
Tritanopia (blue-blind)
#884768
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8a2ea7; /* rgb */ color: rgb(138, 46, 167); /* oklch */ color: oklch(49.1% 0.193 316.8);
Tailwind
colors: {
custom: {
50: '#b070c2',
500: '#8a2ea7',
950: '#000000',
},
}SCSS
$custom: #8a2ea7; $custom-light: #b070c2; $custom-dark: #000000;
JSON
{
"hex": "#8a2ea7",
"rgb": {
"r": 138,
"g": 46,
"b": 167
},
"hsl": {
"h": 285.62,
"s": 56.808,
"l": 41.765
},
"oklch": {
"l": 0.49121,
"c": 0.19277,
"h": 316.8
},
"luminance": 0.10147
}Semantic roles & 50–950 ramp
primary
#8A2EA7
secondary
#83C170
accent
#E0486C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81