#8A2EAB#8A2EAB
#8A2EAB is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.196 H 315.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2EAB |
|---|---|
| RGB | rgb(138, 46, 171) |
| HSL | hsl(284, 58%, 43%) |
| HSV | hsv(284, 73%, 67%) |
| CMYK | cmyk(19.3%, 73.1%, 0%, 32.9%) |
| CIE-LAB | lab(38.37, 57.00, -48.92) |
| CIE-LCH | lch(38.37, 75.11, 319.37°) |
| OKLab | oklab(49.4% 0.14 -0.1378) |
| OKLCH | oklch(49.4% 0.196 315.5) |
| XYZ | xyz(18.8077, 10.2982, 39.5172) |
| Luminance | 0.1030 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.10
Purply
#983FB2
ΔE00 4.69
Darkorchid
#9932CC
ΔE00 5.52
Barney
#AC1DB8
ΔE00 5.94
Darkviolet
#9400D3
ΔE00 6.04
Barney Purple
#A00498
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2EAB #4FAB2E
analogous
#4B2EAB #8A2EAB #AB2E8E
triadic
#8A2EAB #AB8A2E #2EAB8A
tetradic
#8A2EAB #AB4B2E #4FAB2E #2E8EAB
square
#8A2EAB #AB4B2E #4FAB2E #2E8EAB
split-complementary
#8A2EAB #8EAB2E #2EAB4B
monochromatic
#3C144B #63217B #8A2EAB #AB48CE #C179DB
Accessibility & contrast
On white
6.86
#8A2EAB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#8A2EAB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2EAB
6.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2EAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2EAB | 1.00 | 6.86 | 3.06 | 6.86 |
| #FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#2B5DA8
Tritanopia (blue-blind)
#87486A
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8a2eab; /* rgb */ color: rgb(138, 46, 171); /* oklch */ color: oklch(49.4% 0.196 315.5);
Tailwind
colors: {
custom: {
50: '#b070c5',
500: '#8a2eab',
950: '#000000',
},
}SCSS
$custom: #8a2eab; $custom-light: #b070c5; $custom-dark: #000000;
JSON
{
"hex": "#8a2eab",
"rgb": {
"r": 138,
"g": 46,
"b": 171
},
"hsl": {
"h": 284.16,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.49395,
"c": 0.19646,
"h": 315.5
},
"luminance": 0.10298
}Semantic roles & 50–950 ramp
primary
#8A2EAB
secondary
#87C372
accent
#E14770
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82