#7E226D#7E226D
#7E226D is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.6% C 0.152 H 336.3°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).
Color values
| HEX | #7E226D |
|---|---|
| RGB | rgb(126, 34, 109) |
| HSL | hsl(311, 58%, 31%) |
| HSV | hsv(311, 73%, 49%) |
| CMYK | cmyk(0%, 73%, 13.5%, 50.6%) |
| CIE-LAB | lab(31.08, 47.47, -22.41) |
| CIE-LCH | lch(31.08, 52.49, 334.72°) |
| OKLab | oklab(42.59% 0.1393 -0.061) |
| OKLCH | oklch(42.59% 0.152 336.3) |
| XYZ | xyz(11.9367, 6.6849, 15.1267) |
| Luminance | 0.0668 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Darkish Purple
#751973
ΔE00 3.71
Rich Purple
#720058
ΔE00 5.31
Purple
#800080
ΔE00 5.58
Grape
#6C3461
ΔE00 5.87
Velvet
#750851
ΔE00 6.17
Darkmagenta
#8B008B
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E226D #227E33
analogous
#61227E #7E226D #7E223F
triadic
#7E226D #6D7E22 #226D7E
tetradic
#7E226D #7E6122 #227E33 #223F7E
square
#7E226D #7E6122 #227E33 #223F7E
split-complementary
#7E226D #3F7E22 #227E61
monochromatic
#1E081A #4E1543 #7E226D #AE2F97 #CF4CB6
Accessibility & contrast
On white
8.99
#7E226D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#7E226D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E226D
8.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E226D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E226D | 1.00 | 8.99 | 2.34 | 8.99 |
| #FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#24406F
Deuteranopia (green-blind)
#434E6B
Tritanopia (blue-blind)
#852844
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #7e226d; /* rgb */ color: rgb(126, 34, 109); /* oklch */ color: oklch(42.6% 0.152 336.3);
Tailwind
colors: {
custom: {
50: '#a66697',
500: '#7e226d',
950: '#000000',
},
}SCSS
$custom: #7e226d; $custom-light: #a66697; $custom-dark: #000000;
JSON
{
"hex": "#7e226d",
"rgb": {
"r": 126,
"g": 34,
"b": 109
},
"hsl": {
"h": 311.087,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.4259,
"c": 0.15203,
"h": 336.3
},
"luminance": 0.06684
}Semantic roles & 50–950 ramp
primary
#7E226D
secondary
#4BB15E
accent
#E16347
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E