#7F1872#7F1872
#7F1872 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.167 H 334.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).
Color values
| HEX | #7F1872 |
|---|---|
| RGB | rgb(127, 24, 114) |
| HSL | hsl(308, 68%, 30%) |
| HSV | hsv(308, 81%, 50%) |
| CMYK | cmyk(0%, 81.1%, 10.2%, 50.2%) |
| CIE-LAB | lab(30.35, 51.84, -26.73) |
| CIE-LCH | lch(30.35, 58.32, 332.72°) |
| OKLab | oklab(42.19% 0.1506 -0.0733) |
| OKLCH | oklch(42.19% 0.167 334) |
| XYZ | xyz(12.1164, 6.3813, 16.5099) |
| Luminance | 0.0638 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.35
Purple
#800080
ΔE00 3.65
Darkmagenta
#8B008B
ΔE00 4.81
Rich Purple
#720058
ΔE00 5.41
Warm Purple
#952E8F
ΔE00 6.87
Velvet
#750851
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F1872 #187F25
analogous
#59187F #7F1872 #7F183E
triadic
#7F1872 #727F18 #18727F
tetradic
#7F1872 #7F5918 #187F25 #183E7F
square
#7F1872 #7F5918 #187F25 #183E7F
split-complementary
#7F1872 #3E7F18 #187F59
monochromatic
#1A0517 #4C0E44 #7F1872 #B222A0 #D938C5
Accessibility & contrast
On white
9.23
#7F1872 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#7F1872 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F1872
9.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F1872 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F1872 | 1.00 | 9.23 | 2.28 | 9.23 |
| #FFFFFF | 9.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#153E74
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#852344
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #7f1872; /* rgb */ color: rgb(127, 24, 114); /* oklch */ color: oklch(42.2% 0.167 334.0);
Tailwind
colors: {
custom: {
50: '#a8639b',
500: '#7f1872',
950: '#000000',
},
}SCSS
$custom: #7f1872; $custom-light: #a8639b; $custom-dark: #000000;
JSON
{
"hex": "#7f1872",
"rgb": {
"r": 127,
"g": 24,
"b": 114
},
"hsl": {
"h": 307.573,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.42189,
"c": 0.16749,
"h": 334
},
"luminance": 0.0638
}Semantic roles & 50–950 ramp
primary
#7F1872
secondary
#3FB34E
accent
#EB533D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E