#8A2EB5#8A2EB5
#8A2EB5 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.1% C 0.206 H 312.4°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2EB5 |
|---|---|
| RGB | rgb(138, 46, 181) |
| HSL | hsl(281, 59%, 45%) |
| HSV | hsv(281, 75%, 71%) |
| CMYK | cmyk(23.8%, 74.6%, 0%, 29%) |
| CIE-LAB | lab(39.06, 59.06, -53.74) |
| CIE-LCH | lch(39.06, 79.85, 317.70°) |
| OKLab | oklab(50.1% 0.1387 -0.152) |
| OKLCH | oklch(50.1% 0.206 312.4) |
| XYZ | xyz(19.7972, 10.6940, 44.7284) |
| Luminance | 0.1069 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.29
Darkviolet
#9400D3
ΔE00 4.71
Purply
#983FB2
ΔE00 4.82
Purple (survey)
#7E1E9C
ΔE00 5.06
Barney
#AC1DB8
ΔE00 6.06
Blueviolet
#8A2BE2
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2EB5 #59B52E
analogous
#472EB5 #8A2EB5 #B52E9D
triadic
#8A2EB5 #B58A2E #2EB58A
tetradic
#8A2EB5 #B5472E #59B52E #2E9DB5
square
#8A2EB5 #B5472E #59B52E #2E9DB5
split-complementary
#8A2EB5 #9DB52E #2EB547
monochromatic
#401553 #652284 #8A2EB5 #A84ED2 #C07FDE
Accessibility & contrast
On white
6.69
#8A2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#8A2EB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2EB5
6.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2EB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2EB5 | 1.00 | 6.69 | 3.14 | 6.69 |
| #FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#1C5EB2
Tritanopia (blue-blind)
#854D70
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8a2eb5; /* rgb */ color: rgb(138, 46, 181); /* oklch */ color: oklch(50.1% 0.206 312.4);
Tailwind
colors: {
custom: {
50: '#b170cc',
500: '#8a2eb5',
950: '#000000',
},
}SCSS
$custom: #8a2eb5; $custom-light: #b170cc; $custom-dark: #000000;
JSON
{
"hex": "#8a2eb5",
"rgb": {
"r": 138,
"g": 46,
"b": 181
},
"hsl": {
"h": 280.889,
"s": 59.471,
"l": 44.51
},
"oklch": {
"l": 0.50101,
"c": 0.20572,
"h": 312.4
},
"luminance": 0.10693
}Semantic roles & 50–950 ramp
primary
#8A2EB5
secondary
#91C778
accent
#E34577
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82