#7E1166#7E1166
#7E1166 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.9% C 0.165 H 339.5°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #7E1166 |
|---|---|
| RGB | rgb(126, 17, 102) |
| HSL | hsl(313, 76%, 28%) |
| HSV | hsv(313, 87%, 49%) |
| CMYK | cmyk(0%, 86.5%, 19%, 50.6%) |
| CIE-LAB | lab(28.89, 51.64, -21.32) |
| CIE-LCH | lch(28.89, 55.87, 337.57°) |
| OKLab | oklab(40.9% 0.1542 -0.0578) |
| OKLCH | oklch(40.9% 0.165 339.5) |
| XYZ | xyz(11.2032, 5.7970, 13.0967) |
| Luminance | 0.0580 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Rich Purple
#720058
ΔE00 3.35
Darkish Purple
#751973
ΔE00 4.19
Velvet
#750851
ΔE00 4.45
Purple
#800080
ΔE00 5.77
Grape Purple
#5D1451
ΔE00 6.63
Red Violet
#9E0168
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E1166 #117E29
analogous
#5F117E #7E1166 #7E112F
triadic
#7E1166 #667E11 #11667E
tetradic
#7E1166 #7E5F11 #117E29 #112F7E
square
#7E1166 #7E5F11 #117E29 #112F7E
split-complementary
#7E1166 #2F7E11 #117E5F
monochromatic
#1B0416 #480A3A #7E1166 #B41892 #E227B9
Accessibility & contrast
On white
9.73
#7E1166 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#7E1166 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E1166
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E1166 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E1166 | 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)
#1A3968
Deuteranopia (green-blind)
#404A64
Tritanopia (blue-blind)
#86173C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #7e1166; /* rgb */ color: rgb(126, 17, 102); /* oklch */ color: oklch(40.9% 0.165 339.5);
Tailwind
colors: {
custom: {
50: '#a76092',
500: '#7e1166',
950: '#000000',
},
}SCSS
$custom: #7e1166; $custom-light: #a76092; $custom-dark: #000000;
JSON
{
"hex": "#7e1166",
"rgb": {
"r": 126,
"g": 17,
"b": 102
},
"hsl": {
"h": 313.211,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.409,
"c": 0.16465,
"h": 339.5
},
"luminance": 0.05796
}Semantic roles & 50–950 ramp
primary
#7E1166
secondary
#37B452
accent
#F35F35
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050D
muted
#7F7A7D