#7E1862#7E1862
#7E1862 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.2% C 0.156 H 341.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #7E1862 |
|---|---|
| RGB | rgb(126, 24, 98) |
| HSL | hsl(316, 68%, 29%) |
| HSV | hsv(316, 81%, 49%) |
| CMYK | cmyk(0%, 81%, 22.2%, 50.6%) |
| CIE-LAB | lab(29.34, 49.22, -18.03) |
| CIE-LCH | lch(29.34, 52.42, 339.88°) |
| OKLab | oklab(41.16% 0.148 -0.0485) |
| OKLCH | oklch(41.16% 0.156 341.9) |
| XYZ | xyz(11.1358, 5.9719, 12.1191) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Rich Purple
#720058
ΔE00 3.59
Velvet
#750851
ΔE00 3.72
Darkish Purple
#751973
ΔE00 5.36
Red Violet
#9E0168
ΔE00 6.18
Grape
#6C3461
ΔE00 6.40
Grape Purple
#5D1451
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E1862 #187E34
analogous
#67187E #7E1862 #7E182F
triadic
#7E1862 #627E18 #18627E
tetradic
#7E1862 #7E6718 #187E34 #182F7E
square
#7E1862 #7E6718 #187E34 #182F7E
split-complementary
#7E1862 #2F7E18 #187E67
monochromatic
#1A0514 #4B0E3A #7E1862 #B1228A #D937AD
Accessibility & contrast
On white
9.57
#7E1862 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#7E1862 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E1862
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E1862 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E1862 | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#223B64
Deuteranopia (green-blind)
#434B60
Tritanopia (blue-blind)
#861A3B
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #7e1862; /* rgb */ color: rgb(126, 24, 98); /* oklch */ color: oklch(41.2% 0.156 341.9);
Tailwind
colors: {
custom: {
50: '#a7628f',
500: '#7e1862',
950: '#000000',
},
}SCSS
$custom: #7e1862; $custom-light: #a7628f; $custom-dark: #000000;
JSON
{
"hex": "#7e1862",
"rgb": {
"r": 126,
"g": 24,
"b": 98
},
"hsl": {
"h": 316.471,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.41158,
"c": 0.15572,
"h": 341.9
},
"luminance": 0.05971
}Semantic roles & 50–950 ramp
primary
#7E1862
secondary
#3FB25F
accent
#EB6D3D
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D