#7F2971#7F2971
#7F2971 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.7% C 0.146 H 334.9°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2971 |
|---|---|
| RGB | rgb(127, 41, 113) |
| HSL | hsl(310, 51%, 33%) |
| HSV | hsv(310, 68%, 50%) |
| CMYK | cmyk(0%, 67.7%, 11%, 50.2%) |
| CIE-LAB | lab(32.46, 45.56, -22.79) |
| CIE-LCH | lch(32.46, 50.94, 333.43°) |
| OKLab | oklab(43.69% 0.1325 -0.0621) |
| OKLCH | oklch(43.69% 0.146 334.9) |
| XYZ | xyz(12.5261, 7.2912, 16.3672) |
| Luminance | 0.0729 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 4.20
Bruise
#7E4071
ΔE00 5.57
Grape
#6C3461
ΔE00 5.57
Purple
#800080
ΔE00 5.95
Warm Purple
#952E8F
ΔE00 6.24
Darkmagenta
#8B008B
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2971 #297F37
analogous
#62297F #7F2971 #7F2946
triadic
#7F2971 #717F29 #29717F
tetradic
#7F2971 #7F6229 #297F37 #29467F
square
#7F2971 #7F6229 #297F37 #29467F
split-complementary
#7F2971 #467F29 #297F62
monochromatic
#220B1F #511A48 #7F2971 #AD389A #C959B7
Accessibility & contrast
On white
8.54
#7F2971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#7F2971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2971
8.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2971 | 1.00 | 8.54 | 2.46 | 8.54 |
| #FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#294473
Deuteranopia (green-blind)
#45516F
Tritanopia (blue-blind)
#852F49
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #7f2971; /* rgb */ color: rgb(127, 41, 113); /* oklch */ color: oklch(43.7% 0.146 334.9);
Tailwind
colors: {
custom: {
50: '#a76a9a',
500: '#7f2971',
950: '#000000',
},
}SCSS
$custom: #7f2971; $custom-light: #a76a9a; $custom-dark: #000000;
JSON
{
"hex": "#7f2971",
"rgb": {
"r": 127,
"g": 41,
"b": 113
},
"hsl": {
"h": 309.767,
"s": 51.19,
"l": 32.941
},
"oklch": {
"l": 0.43692,
"c": 0.14635,
"h": 334.9
},
"luminance": 0.0729
}Semantic roles & 50–950 ramp
primary
#7F2971
secondary
#55AF64
accent
#DB644D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E