#7F176A#7F176A
#7F176A is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.7% C 0.163 H 338.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).
Color values
| HEX | #7F176A |
|---|---|
| RGB | rgb(127, 23, 106) |
| HSL | hsl(312, 69%, 29%) |
| HSV | hsv(312, 82%, 50%) |
| CMYK | cmyk(0%, 81.9%, 16.5%, 50.2%) |
| CIE-LAB | lab(29.83, 50.91, -22.43) |
| CIE-LCH | lch(29.83, 55.63, 336.22°) |
| OKLab | oklab(41.67% 0.1509 -0.061) |
| OKLCH | oklch(41.67% 0.163 338) |
| XYZ | xyz(11.6606, 6.1666, 14.2090) |
| Luminance | 0.0617 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Darkish Purple
#751973
ΔE00 3.70
Rich Purple
#720058
ΔE00 4.19
Velvet
#750851
ΔE00 5.28
Purple
#800080
ΔE00 5.30
Darkmagenta
#8B008B
ΔE00 6.43
Red Violet
#9E0168
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F176A #177F2C
analogous
#60177F #7F176A #7F1736
triadic
#7F176A #6A7F17 #176A7F
tetradic
#7F176A #7F6017 #177F2C #17367F
square
#7F176A #7F6017 #177F2C #17367F
split-complementary
#7F176A #367F17 #177F60
monochromatic
#1A0516 #4B0E3F #7F176A #B32095 #DB36B9
Accessibility & contrast
On white
9.40
#7F176A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#7F176A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F176A
9.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F176A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F176A | 1.00 | 9.40 | 2.23 | 9.40 |
| #FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C3C6C
Deuteranopia (green-blind)
#414C68
Tritanopia (blue-blind)
#861D40
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #7f176a; /* rgb */ color: rgb(127, 23, 106); /* oklch */ color: oklch(41.7% 0.163 338.0);
Tailwind
colors: {
custom: {
50: '#a86295',
500: '#7f176a',
950: '#000000',
},
}SCSS
$custom: #7f176a; $custom-light: #a86295; $custom-dark: #000000;
JSON
{
"hex": "#7f176a",
"rgb": {
"r": 127,
"g": 23,
"b": 106
},
"hsl": {
"h": 312.115,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.41674,
"c": 0.16272,
"h": 338
},
"luminance": 0.06165
}Semantic roles & 50–950 ramp
primary
#7F176A
secondary
#3EB456
accent
#EC5F3C
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E