#8A2BA1#8A2BA1
#8A2BA1 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.191 H 319.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2BA1 |
|---|---|
| RGB | rgb(138, 43, 161) |
| HSL | hsl(288, 58%, 40%) |
| HSV | hsv(288, 73%, 63%) |
| CMYK | cmyk(14.3%, 73.3%, 0%, 36.9%) |
| CIE-LAB | lab(37.31, 56.17, -44.63) |
| CIE-LCH | lch(37.31, 71.74, 321.53°) |
| OKLab | oklab(48.43% 0.144 -0.1252) |
| OKLCH | oklch(48.43% 0.191 319) |
| XYZ | xyz(17.7773, 9.7051, 34.6482) |
| Luminance | 0.0970 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.34
Warm Purple
#952E8F
ΔE00 5.01
Barney Purple
#A00498
ΔE00 5.12
Darkmagenta
#8B008B
ΔE00 5.43
Purply
#983FB2
ΔE00 5.45
Barney
#AC1DB8
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2BA1 #42A12B
analogous
#4F2BA1 #8A2BA1 #A12B7D
triadic
#8A2BA1 #A18A2B #2BA18A
tetradic
#8A2BA1 #A14F2B #42A12B #2B7DA1
square
#8A2BA1 #A14F2B #42A12B #2B7DA1
split-complementary
#8A2BA1 #7DA12B #2BA14F
monochromatic
#371140 #611E71 #8A2BA1 #B03ECB #C46ED8
Accessibility & contrast
On white
7.14
#8A2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#8A2BA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2BA1
7.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2BA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2BA1 | 1.00 | 7.14 | 2.94 | 7.14 |
| #FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#335B9E
Tritanopia (blue-blind)
#8A4264
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #8a2ba1; /* rgb */ color: rgb(138, 43, 161); /* oklch */ color: oklch(48.4% 0.191 319.0);
Tailwind
colors: {
custom: {
50: '#b06ebd',
500: '#8a2ba1',
950: '#000000',
},
}SCSS
$custom: #8a2ba1; $custom-light: #b06ebd; $custom-dark: #000000;
JSON
{
"hex": "#8a2ba1",
"rgb": {
"r": 138,
"g": 43,
"b": 161
},
"hsl": {
"h": 288.305,
"s": 57.843,
"l": 40
},
"oklch": {
"l": 0.48427,
"c": 0.19085,
"h": 319
},
"luminance": 0.09704
}Semantic roles & 50–950 ramp
primary
#8A2BA1
secondary
#79BF69
accent
#E14765
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81