#7F1162#7F1162
#7F1162 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.9% C 0.163 H 342.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #7F1162 |
|---|---|
| RGB | rgb(127, 17, 98) |
| HSL | hsl(316, 76%, 28%) |
| HSV | hsv(316, 87%, 50%) |
| CMYK | cmyk(0%, 86.6%, 22.8%, 50.2%) |
| CIE-LAB | lab(28.89, 51.32, -18.71) |
| CIE-LCH | lch(28.89, 54.63, 339.97°) |
| OKLab | oklab(40.87% 0.1546 -0.0503) |
| OKLCH | oklch(40.87% 0.163 342) |
| XYZ | xyz(11.1579, 5.7960, 12.0840) |
| Luminance | 0.0580 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Rich Purple
#720058
ΔE00 3.23
Velvet
#750851
ΔE00 3.61
Darkish Purple
#751973
ΔE00 5.28
Red Violet
#9E0168
ΔE00 6.15
Grape Purple
#5D1451
ΔE00 6.74
Purple
#800080
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F1162 #117F2E
analogous
#65117F #7F1162 #7F112B
triadic
#7F1162 #627F11 #11627F
tetradic
#7F1162 #7F6511 #117F2E #112B7F
square
#7F1162 #7F6511 #117F2E #112B7F
split-complementary
#7F1162 #2B7F11 #117F65
monochromatic
#1B0415 #490A38 #7F1162 #B5188C #E228B1
Accessibility & contrast
On white
9.73
#7F1162 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#7F1162 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F1162
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F1162 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F1162 | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E3964
Deuteranopia (green-blind)
#424A60
Tritanopia (blue-blind)
#87133A
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #7f1162; /* rgb */ color: rgb(127, 17, 98); /* oklch */ color: oklch(40.9% 0.163 342.0);
Tailwind
colors: {
custom: {
50: '#a8608f',
500: '#7f1162',
950: '#000000',
},
}SCSS
$custom: #7f1162; $custom-light: #a8608f; $custom-dark: #000000;
JSON
{
"hex": "#7f1162",
"rgb": {
"r": 127,
"g": 17,
"b": 98
},
"hsl": {
"h": 315.818,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.4087,
"c": 0.16262,
"h": 342
},
"luminance": 0.05795
}Semantic roles & 50–950 ramp
primary
#7F1162
secondary
#37B558
accent
#F36735
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050C
muted
#7F7A7D