#7E307D#7E307D
#7E307D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.0% C 0.146 H 328.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).
Color values
| HEX | #7E307D |
|---|---|
| RGB | rgb(126, 48, 125) |
| HSL | hsl(301, 45%, 34%) |
| HSV | hsv(301, 62%, 49%) |
| CMYK | cmyk(0%, 61.9%, 0.8%, 50.6%) |
| CIE-LAB | lab(34.05, 44.27, -27.86) |
| CIE-LCH | lch(34.05, 52.30, 327.81°) |
| OKLab | oklab(45.02% 0.1237 -0.0768) |
| OKLCH | oklch(45.02% 0.146 328.2) |
| XYZ | xyz(13.3626, 8.0311, 20.2444) |
| Luminance | 0.0803 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 4.53
Warm Purple
#952E8F
ΔE00 4.78
Light Eggplant
#894585
ΔE00 5.57
Purple
#800080
ΔE00 5.67
Darkmagenta
#8B008B
ΔE00 5.67
Bruise
#7E4071
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E307D #307E31
analogous
#58307E #7E307D #7E3056
triadic
#7E307D #7D7E30 #307D7E
tetradic
#7E307D #7E5830 #307E31 #30567E
square
#7E307D #7E5830 #307E31 #30567E
split-complementary
#7E307D #567E30 #307E58
monochromatic
#250E25 #521F51 #7E307D #AA41A9 #C464C3
Accessibility & contrast
On white
8.06
#7E307D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#7E307D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E307D
8.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E307D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E307D | 1.00 | 8.06 | 2.61 | 8.06 |
| #FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28497F
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#823952
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #7e307d; /* rgb */ color: rgb(126, 48, 125); /* oklch */ color: oklch(45.0% 0.146 328.2);
Tailwind
colors: {
custom: {
50: '#a66ea3',
500: '#7e307d',
950: '#000000',
},
}SCSS
$custom: #7e307d; $custom-light: #a66ea3; $custom-dark: #000000;
JSON
{
"hex": "#7e307d",
"rgb": {
"r": 126,
"g": 48,
"b": 125
},
"hsl": {
"h": 300.769,
"s": 44.828,
"l": 34.118
},
"oklch": {
"l": 0.45016,
"c": 0.14558,
"h": 328.2
},
"luminance": 0.0803
}Semantic roles & 50–950 ramp
primary
#7E307D
secondary
#5FAB60
accent
#D55553
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F