#7E2276#7E2276
#7E2276 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.159 H 331.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2276 |
|---|---|
| RGB | rgb(126, 34, 118) |
| HSL | hsl(305, 58%, 31%) |
| HSV | hsv(305, 73%, 49%) |
| CMYK | cmyk(0%, 73%, 6.3%, 50.6%) |
| CIE-LAB | lab(31.55, 48.94, -27.39) |
| CIE-LCH | lch(31.55, 56.08, 330.76°) |
| OKLab | oklab(43.09% 0.1401 -0.0753) |
| OKLCH | oklch(43.09% 0.159 331.7) |
| XYZ | xyz(12.4462, 6.8887, 17.8102) |
| Luminance | 0.0689 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.50
Purple
#800080
ΔE00 3.94
Darkmagenta
#8B008B
ΔE00 4.73
Warm Purple
#952E8F
ΔE00 5.98
Rich Purple
#720058
ΔE00 6.56
Grape
#6C3461
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2276 #227E2A
analogous
#58227E #7E2276 #7E2248
triadic
#7E2276 #767E22 #22767E
tetradic
#7E2276 #7E5822 #227E2A #22487E
square
#7E2276 #7E5822 #227E2A #22487E
split-complementary
#7E2276 #487E22 #227E58
monochromatic
#1E081C #4E1549 #7E2276 #AE2FA3 #CF4CC3
Accessibility & contrast
On white
8.83
#7E2276 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#7E2276 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2276
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2276 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2276 | 1.00 | 8.83 | 2.38 | 8.83 |
| #FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C4278
Deuteranopia (green-blind)
#3F4F74
Tritanopia (blue-blind)
#832C49
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #7e2276; /* rgb */ color: rgb(126, 34, 118); /* oklch */ color: oklch(43.1% 0.159 331.7);
Tailwind
colors: {
custom: {
50: '#a6679e',
500: '#7e2276',
950: '#000000',
},
}SCSS
$custom: #7e2276; $custom-light: #a6679e; $custom-dark: #000000;
JSON
{
"hex": "#7e2276",
"rgb": {
"r": 126,
"g": 34,
"b": 118
},
"hsl": {
"h": 305.217,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.43086,
"c": 0.15903,
"h": 331.7
},
"luminance": 0.06888
}Semantic roles & 50–950 ramp
primary
#7E2276
secondary
#4BB154
accent
#E15447
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E