#7E2D7C#7E2D7C
#7E2D7C is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.6% C 0.149 H 328.7°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2D7C |
|---|---|
| RGB | rgb(126, 45, 124) |
| HSL | hsl(301, 47%, 34%) |
| HSV | hsv(301, 64%, 49%) |
| CMYK | cmyk(0%, 64.3%, 1.6%, 50.6%) |
| CIE-LAB | lab(33.50, 45.46, -28.10) |
| CIE-LCH | lch(33.50, 53.44, 328.27°) |
| OKLab | oklab(44.6% 0.1275 -0.0775) |
| OKLCH | oklch(44.6% 0.149 328.7) |
| XYZ | xyz(13.1805, 7.7685, 19.8701) |
| Luminance | 0.0777 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 3.98
Warm Purple
#952E8F
ΔE00 4.91
Purple
#800080
ΔE00 5.13
Darkmagenta
#8B008B
ΔE00 5.27
Light Eggplant
#894585
ΔE00 6.11
Bruise
#7E4071
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2D7C #2D7E2F
analogous
#572D7E #7E2D7C #7E2D53
triadic
#7E2D7C #7C7E2D #2D7C7E
tetradic
#7E2D7C #7E572D #2D7E2F #2D537E
square
#7E2D7C #7E572D #2D7E2F #2D537E
split-complementary
#7E2D7C #537E2D #2D7E57
monochromatic
#240D23 #511D50 #7E2D7C #AB3DA8 #C65FC3
Accessibility & contrast
On white
8.22
#7E2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#7E2D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2D7C
8.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2D7C | 1.00 | 8.22 | 2.55 | 8.22 |
| #FFFFFF | 8.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#25487E
Deuteranopia (green-blind)
#41537A
Tritanopia (blue-blind)
#823750
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #7e2d7c; /* rgb */ color: rgb(126, 45, 124); /* oklch */ color: oklch(44.6% 0.149 328.7);
Tailwind
colors: {
custom: {
50: '#a66ca2',
500: '#7e2d7c',
950: '#000000',
},
}SCSS
$custom: #7e2d7c; $custom-light: #a66ca2; $custom-dark: #000000;
JSON
{
"hex": "#7e2d7c",
"rgb": {
"r": 126,
"g": 45,
"b": 124
},
"hsl": {
"h": 301.481,
"s": 47.368,
"l": 33.529
},
"oklch": {
"l": 0.44598,
"c": 0.14918,
"h": 328.7
},
"luminance": 0.07768
}Semantic roles & 50–950 ramp
primary
#7E2D7C
secondary
#5AAC5C
accent
#D75451
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F