#8A2F71#8A2F71
#8A2F71 is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.1% C 0.145 H 340.2°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2F71 |
|---|---|
| RGB | rgb(138, 47, 113) |
| HSL | hsl(316, 49%, 36%) |
| HSV | hsv(316, 66%, 54%) |
| CMYK | cmyk(0%, 65.9%, 18.1%, 45.9%) |
| CIE-LAB | lab(35.26, 46.08, -18.29) |
| CIE-LCH | lch(35.26, 49.58, 338.35°) |
| OKLab | oklab(46.1% 0.1369 -0.0492) |
| OKLCH | oklch(46.1% 0.145 340.2) |
| XYZ | xyz(14.4787, 8.6299, 16.5228) |
| Luminance | 0.0863 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Bruise
#7E4071
ΔE00 4.50
Red Violet
#9E0168
ΔE00 5.65
Light Eggplant
#894585
ΔE00 5.93
Warm Purple
#952E8F
ΔE00 6.11
Grape
#6C3461
ΔE00 6.46
Darkish Purple
#751973
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2F71 #2F8A48
analogous
#762F8A #8A2F71 #8A2F44
triadic
#8A2F71 #718A2F #2F718A
tetradic
#8A2F71 #8A762F #2F8A48 #2F448A
square
#8A2F71 #8A762F #2F8A48 #2F448A
split-complementary
#8A2F71 #448A2F #2F8A76
monochromatic
#2F1026 #5C1F4C #8A2F71 #B83F96 #CC68B0
Accessibility & contrast
On white
7.70
#8A2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.73
#8A2F71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2F71
7.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2F71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2F71 | 1.00 | 7.70 | 2.73 | 7.70 |
| #FFFFFF | 7.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#344A73
Deuteranopia (green-blind)
#50586F
Tritanopia (blue-blind)
#92314B
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #8a2f71; /* rgb */ color: rgb(138, 47, 113); /* oklch */ color: oklch(46.1% 0.145 340.2);
Tailwind
colors: {
custom: {
50: '#af6e9a',
500: '#8a2f71',
950: '#000000',
},
}SCSS
$custom: #8a2f71; $custom-light: #af6e9a; $custom-dark: #000000;
JSON
{
"hex": "#8a2f71",
"rgb": {
"r": 138,
"g": 47,
"b": 113
},
"hsl": {
"h": 316.484,
"s": 49.189,
"l": 36.275
},
"oklch": {
"l": 0.461,
"c": 0.14547,
"h": 340.2
},
"luminance": 0.08629
}Semantic roles & 50–950 ramp
primary
#8A2F71
secondary
#62B378
accent
#D9754F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E