#8A2A8B#8A2A8B
#8A2A8B is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.173 H 327.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2A8B |
|---|---|
| RGB | rgb(138, 42, 139) |
| HSL | hsl(299, 54%, 35%) |
| HSV | hsv(299, 70%, 55%) |
| CMYK | cmyk(0.7%, 69.8%, 0%, 45.5%) |
| CIE-LAB | lab(35.84, 52.46, -33.58) |
| CIE-LCH | lch(35.84, 62.29, 327.37°) |
| OKLab | oklab(46.95% 0.1458 -0.093) |
| OKLCH | oklch(46.95% 0.173 327.5) |
| XYZ | xyz(15.9692, 8.9244, 25.3026) |
| Luminance | 0.0892 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.47
Darkmagenta
#8B008B
ΔE00 3.86
Barney Purple
#A00498
ΔE00 4.29
Purple
#800080
ΔE00 5.18
Purple (survey)
#7E1E9C
ΔE00 5.45
Darkish Purple
#751973
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2A8B #2B8B2A
analogous
#592A8B #8A2A8B #8B2A5C
triadic
#8A2A8B #8B8A2A #2A8B8A
tetradic
#8A2A8B #8B592A #2B8B2A #2A5C8B
square
#8A2A8B #8B592A #2B8B2A #2A5C8B
split-complementary
#8A2A8B #5C8B2A #2A8B59
monochromatic
#2D0E2D #5B1C5C #8A2A8B #B938BA #CE60CF
Accessibility & contrast
On white
7.54
#8A2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#8A2A8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2A8B
7.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2A8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2A8B | 1.00 | 7.54 | 2.78 | 7.54 |
| #FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A4C8E
Deuteranopia (green-blind)
#425988
Tritanopia (blue-blind)
#8E3857
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #8a2a8b; /* rgb */ color: rgb(138, 42, 139); /* oklch */ color: oklch(46.9% 0.173 327.5);
Tailwind
colors: {
custom: {
50: '#af6dad',
500: '#8a2a8b',
950: '#000000',
},
}SCSS
$custom: #8a2a8b; $custom-light: #af6dad; $custom-dark: #000000;
JSON
{
"hex": "#8a2a8b",
"rgb": {
"r": 138,
"g": 42,
"b": 139
},
"hsl": {
"h": 299.381,
"s": 53.591,
"l": 35.49
},
"oklch": {
"l": 0.46947,
"c": 0.17293,
"h": 327.5
},
"luminance": 0.08923
}Semantic roles & 50–950 ramp
primary
#8A2A8B
secondary
#5DB55C
accent
#DD4B4C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F