#7E317D#7E317D
#7E317D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.1% C 0.144 H 328.1°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).
Color values
| HEX | #7E317D |
|---|---|
| RGB | rgb(126, 49, 125) |
| HSL | hsl(301, 44%, 34%) |
| HSV | hsv(301, 61%, 49%) |
| CMYK | cmyk(0%, 61.1%, 0.8%, 50.6%) |
| CIE-LAB | lab(34.22, 43.80, -27.59) |
| CIE-LCH | lch(34.22, 51.76, 327.79°) |
| OKLab | oklab(45.14% 0.1224 -0.076) |
| OKLCH | oklch(45.14% 0.144 328.1) |
| XYZ | xyz(13.4040, 8.1138, 20.2582) |
| Luminance | 0.0811 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 4.71
Warm Purple
#952E8F
ΔE00 4.78
Light Eggplant
#894585
ΔE00 5.38
Bruise
#7E4071
ΔE00 5.70
Darkmagenta
#8B008B
ΔE00 5.86
Purple
#800080
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E317D #317E32
analogous
#59317E #7E317D #7E3157
triadic
#7E317D #7D7E31 #317D7E
tetradic
#7E317D #7E5931 #317E32 #31577E
square
#7E317D #7E5931 #317E32 #31577E
split-complementary
#7E317D #577E31 #317E59
monochromatic
#260F26 #522051 #7E317D #AA42A9 #C366C2
Accessibility & contrast
On white
8.01
#7E317D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#7E317D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E317D
8.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E317D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E317D | 1.00 | 8.01 | 2.62 | 8.01 |
| #FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#294A7F
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#823A52
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #7e317d; /* rgb */ color: rgb(126, 49, 125); /* oklch */ color: oklch(45.1% 0.144 328.1);
Tailwind
colors: {
custom: {
50: '#a66ea3',
500: '#7e317d',
950: '#000000',
},
}SCSS
$custom: #7e317d; $custom-light: #a66ea3; $custom-dark: #000000;
JSON
{
"hex": "#7e317d",
"rgb": {
"r": 126,
"g": 49,
"b": 125
},
"hsl": {
"h": 300.779,
"s": 44,
"l": 34.314
},
"oklch": {
"l": 0.45141,
"c": 0.14405,
"h": 328.1
},
"luminance": 0.08113
}Semantic roles & 50–950 ramp
primary
#7E317D
secondary
#60AB61
accent
#D45654
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F