#7F1870#7F1870
#7F1870 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.166 H 335.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).
Color values
| HEX | #7F1870 |
|---|---|
| RGB | rgb(127, 24, 112) |
| HSL | hsl(309, 68%, 30%) |
| HSV | hsv(309, 81%, 50%) |
| CMYK | cmyk(0%, 81.1%, 11.8%, 50.2%) |
| CIE-LAB | lab(30.25, 51.53, -25.62) |
| CIE-LCH | lch(30.25, 57.55, 333.56°) |
| OKLab | oklab(42.08% 0.1505 -0.0701) |
| OKLCH | oklch(42.08% 0.166 335) |
| XYZ | xyz(12.0038, 6.3362, 15.9169) |
| Luminance | 0.0634 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.63
Purple
#800080
ΔE00 4.06
Rich Purple
#720058
ΔE00 5.08
Darkmagenta
#8B008B
ΔE00 5.21
Velvet
#750851
ΔE00 6.53
Warm Purple
#952E8F
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F1870 #187F27
analogous
#5B187F #7F1870 #7F183D
triadic
#7F1870 #707F18 #18707F
tetradic
#7F1870 #7F5B18 #187F27 #183D7F
square
#7F1870 #7F5B18 #187F27 #183D7F
split-complementary
#7F1870 #3D7F18 #187F5B
monochromatic
#1A0517 #4C0E43 #7F1870 #B2229D #D938C2
Accessibility & contrast
On white
9.26
#7F1870 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#7F1870 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F1870
9.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F1870 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F1870 | 1.00 | 9.26 | 2.27 | 9.26 |
| #FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#173E72
Deuteranopia (green-blind)
#3E4D6E
Tritanopia (blue-blind)
#862243
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #7f1870; /* rgb */ color: rgb(127, 24, 112); /* oklch */ color: oklch(42.1% 0.166 335.0);
Tailwind
colors: {
custom: {
50: '#a86299',
500: '#7f1870',
950: '#000000',
},
}SCSS
$custom: #7f1870; $custom-light: #a86299; $custom-dark: #000000;
JSON
{
"hex": "#7f1870",
"rgb": {
"r": 127,
"g": 24,
"b": 112
},
"hsl": {
"h": 308.738,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.42075,
"c": 0.16603,
"h": 335
},
"luminance": 0.06335
}Semantic roles & 50–950 ramp
primary
#7F1870
secondary
#3FB350
accent
#EB563D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E