#7F176D#7F176D
#7F176D is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.8% C 0.165 H 336.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).
Color values
| HEX | #7F176D |
|---|---|
| RGB | rgb(127, 23, 109) |
| HSL | hsl(310, 69%, 29%) |
| HSV | hsv(310, 82%, 50%) |
| CMYK | cmyk(0%, 81.9%, 14.2%, 50.2%) |
| CIE-LAB | lab(29.99, 51.35, -24.11) |
| CIE-LCH | lch(29.99, 56.73, 334.85°) |
| OKLab | oklab(41.84% 0.1511 -0.0658) |
| OKLCH | oklch(41.84% 0.165 336.5) |
| XYZ | xyz(11.8193, 6.2301, 15.0451) |
| Luminance | 0.0623 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Darkish Purple
#751973
ΔE00 3.11
Rich Purple
#720058
ΔE00 4.59
Purple
#800080
ΔE00 4.63
Darkmagenta
#8B008B
ΔE00 5.79
Velvet
#750851
ΔE00 5.90
Grape
#6C3461
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F176D #177F29
analogous
#5D177F #7F176D #7F1739
triadic
#7F176D #6D7F17 #176D7F
tetradic
#7F176D #7F5D17 #177F29 #17397F
square
#7F176D #7F5D17 #177F29 #17397F
split-complementary
#7F176D #397F17 #177F5D
monochromatic
#1A0516 #4B0E41 #7F176D #B32099 #DB36BE
Accessibility & contrast
On white
9.35
#7F176D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#7F176D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F176D
9.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F176D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F176D | 1.00 | 9.35 | 2.25 | 9.35 |
| #FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#193D6F
Deuteranopia (green-blind)
#3F4C6B
Tritanopia (blue-blind)
#861F41
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #7f176d; /* rgb */ color: rgb(127, 23, 109); /* oklch */ color: oklch(41.8% 0.165 336.5);
Tailwind
colors: {
custom: {
50: '#a86297',
500: '#7f176d',
950: '#000000',
},
}SCSS
$custom: #7f176d; $custom-light: #a86297; $custom-dark: #000000;
JSON
{
"hex": "#7f176d",
"rgb": {
"r": 127,
"g": 23,
"b": 109
},
"hsl": {
"h": 310.385,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.41837,
"c": 0.16483,
"h": 336.5
},
"luminance": 0.06229
}Semantic roles & 50–950 ramp
primary
#7F176D
secondary
#3EB453
accent
#EC5A3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E