#7F2172#7F2172
#7F2172 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.158 H 334.2°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2172 |
|---|---|
| RGB | rgb(127, 33, 114) |
| HSL | hsl(308, 59%, 31%) |
| HSV | hsv(308, 74%, 50%) |
| CMYK | cmyk(0%, 74%, 10.2%, 50.2%) |
| CIE-LAB | lab(31.38, 48.90, -25.11) |
| CIE-LCH | lch(31.38, 54.97, 332.82°) |
| OKLab | oklab(42.93% 0.142 -0.0687) |
| OKLCH | oklch(42.93% 0.158 334.2) |
| XYZ | xyz(12.3336, 6.8157, 16.5823) |
| Luminance | 0.0682 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.99
Purple
#800080
ΔE00 4.58
Darkmagenta
#8B008B
ΔE00 5.40
Rich Purple
#720058
ΔE00 5.91
Warm Purple
#952E8F
ΔE00 6.37
Grape
#6C3461
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2172 #217F2E
analogous
#5D217F #7F2172 #7F2143
triadic
#7F2172 #727F21 #21727F
tetradic
#7F2172 #7F5D21 #217F2E #21437F
square
#7F2172 #7F5D21 #217F2E #21437F
split-complementary
#7F2172 #437F21 #217F5D
monochromatic
#1E081B #4E1446 #7F2172 #B02E9E #D04ABE
Accessibility & contrast
On white
8.89
#7F2172 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#7F2172 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2172
8.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2172 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2172 | 1.00 | 8.89 | 2.36 | 8.89 |
| #FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F4174
Deuteranopia (green-blind)
#414F70
Tritanopia (blue-blind)
#852947
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #7f2172; /* rgb */ color: rgb(127, 33, 114); /* oklch */ color: oklch(42.9% 0.158 334.2);
Tailwind
colors: {
custom: {
50: '#a7669b',
500: '#7f2172',
950: '#000000',
},
}SCSS
$custom: #7f2172; $custom-light: #a7669b; $custom-dark: #000000;
JSON
{
"hex": "#7f2172",
"rgb": {
"r": 127,
"g": 33,
"b": 114
},
"hsl": {
"h": 308.298,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.42929,
"c": 0.1577,
"h": 334.2
},
"luminance": 0.06815
}Semantic roles & 50–950 ramp
primary
#7F2172
secondary
#4AB258
accent
#E25B46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E