#7E337D#7E337D
#7E337D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.4% C 0.141 H 328.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).
Color values
| HEX | #7E337D |
|---|---|
| RGB | rgb(126, 51, 125) |
| HSL | hsl(301, 42%, 35%) |
| HSV | hsv(301, 60%, 49%) |
| CMYK | cmyk(0%, 59.5%, 0.8%, 50.6%) |
| CIE-LAB | lab(34.57, 42.84, -27.04) |
| CIE-LCH | lch(34.57, 50.66, 327.74°) |
| OKLab | oklab(45.4% 0.1197 -0.0744) |
| OKLCH | oklch(45.4% 0.141 328.1) |
| XYZ | xyz(13.4895, 8.2848, 20.2867) |
| Luminance | 0.0828 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.81
Light Eggplant
#894585
ΔE00 4.99
Darkish Purple
#751973
ΔE00 5.11
Bruise
#7E4071
ΔE00 5.34
Darkmagenta
#8B008B
ΔE00 6.25
Purple
#800080
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E337D #337E34
analogous
#5A337E #7E337D #7E3358
triadic
#7E337D #7D7E33 #337D7E
tetradic
#7E337D #7E5A33 #337E34 #33587E
square
#7E337D #7E5A33 #337E34 #33587E
split-complementary
#7E337D #587E33 #337E5A
monochromatic
#271027 #522152 #7E337D #AA45A8 #C269C1
Accessibility & contrast
On white
7.90
#7E337D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#7E337D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E337D
7.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E337D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E337D | 1.00 | 7.90 | 2.66 | 7.90 |
| #FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B4B7F
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#823C53
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #7e337d; /* rgb */ color: rgb(126, 51, 125); /* oklch */ color: oklch(45.4% 0.141 328.1);
Tailwind
colors: {
custom: {
50: '#a66fa3',
500: '#7e337d',
950: '#000000',
},
}SCSS
$custom: #7e337d; $custom-light: #a66fa3; $custom-dark: #000000;
JSON
{
"hex": "#7e337d",
"rgb": {
"r": 126,
"g": 51,
"b": 125
},
"hsl": {
"h": 300.8,
"s": 42.373,
"l": 34.706
},
"oklch": {
"l": 0.45397,
"c": 0.14092,
"h": 328.1
},
"luminance": 0.08284
}Semantic roles & 50–950 ramp
primary
#7E337D
secondary
#63AA64
accent
#D25756
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10080F
muted
#7F7B7F