#8A2A7A#8A2A7A
#8A2A7A is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.0% C 0.159 H 335.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2A7A |
|---|---|
| RGB | rgb(138, 42, 122) |
| HSL | hsl(310, 53%, 35%) |
| HSV | hsv(310, 70%, 54%) |
| CMYK | cmyk(0%, 69.6%, 11.6%, 45.9%) |
| CIE-LAB | lab(34.93, 49.59, -24.46) |
| CIE-LCH | lch(34.93, 55.29, 333.75°) |
| OKLab | oklab(46% 0.1446 -0.0667) |
| OKLCH | oklch(46% 0.159 335.2) |
| XYZ | xyz(14.8222, 8.4656, 19.2620) |
| Luminance | 0.0846 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.11
Darkish Purple
#751973
ΔE00 5.55
Darkmagenta
#8B008B
ΔE00 5.76
Light Eggplant
#894585
ΔE00 5.80
Bruise
#7E4071
ΔE00 5.87
Purple
#800080
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2A7A #2A8A3A
analogous
#6A2A8A #8A2A7A #8A2A4A
triadic
#8A2A7A #7A8A2A #2A7A8A
tetradic
#8A2A7A #8A6A2A #2A8A3A #2A4A8A
square
#8A2A7A #8A6A2A #2A8A3A #2A4A8A
split-complementary
#8A2A7A #4A8A2A #2A8A6A
monochromatic
#2C0D27 #5B1C51 #8A2A7A #B938A3 #CF60BC
Accessibility & contrast
On white
7.80
#8A2A7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#8A2A7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2A7A
7.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2A7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2A7A | 1.00 | 7.80 | 2.69 | 7.80 |
| #FFFFFF | 7.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A497C
Deuteranopia (green-blind)
#4A5778
Tritanopia (blue-blind)
#91314E
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #8a2a7a; /* rgb */ color: rgb(138, 42, 122); /* oklch */ color: oklch(46.0% 0.159 335.2);
Tailwind
colors: {
custom: {
50: '#af6ca0',
500: '#8a2a7a',
950: '#000000',
},
}SCSS
$custom: #8a2a7a; $custom-light: #af6ca0; $custom-dark: #000000;
JSON
{
"hex": "#8a2a7a",
"rgb": {
"r": 138,
"g": 42,
"b": 122
},
"hsl": {
"h": 310,
"s": 53.333,
"l": 35.294
},
"oklch": {
"l": 0.46,
"c": 0.15921,
"h": 335.2
},
"luminance": 0.08464
}Semantic roles & 50–950 ramp
primary
#8A2A7A
secondary
#5BB46A
accent
#DD634B
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E