#7E31AD#7E31AD
#7E31AD is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.191 H 309.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #7E31AD |
|---|---|
| RGB | rgb(126, 49, 173) |
| HSL | hsl(277, 56%, 44%) |
| HSV | hsv(277, 72%, 68%) |
| CMYK | cmyk(27.2%, 71.7%, 0%, 32.2%) |
| CIE-LAB | lab(37.21, 53.72, -52.08) |
| CIE-LCH | lch(37.21, 74.82, 315.89°) |
| OKLab | oklab(48.25% 0.121 -0.1475) |
| OKLCH | oklch(48.25% 0.191 309.4) |
| XYZ | xyz(17.2438, 9.6497, 40.4812) |
| Luminance | 0.0965 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.09
Rebeccapurple
#663399
ΔE00 4.91
Darkviolet
#9400D3
ΔE00 6.15
Darkorchid
#9932CC
ΔE00 6.25
Purply
#983FB2
ΔE00 6.30
Blueviolet
#8A2BE2
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E31AD #60AD31
analogous
#4031AD #7E31AD #AD319E
triadic
#7E31AD #AD7E31 #31AD7E
tetradic
#7E31AD #AD4031 #60AD31 #319EAD
square
#7E31AD #AD4031 #60AD31 #319EAD
split-complementary
#7E31AD #9EAD31 #31AD40
monochromatic
#39164E #5B237D #7E31AD #9D4ECD #B77EDA
Accessibility & contrast
On white
7.17
#7E31AD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#7E31AD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E31AD
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E31AD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E31AD | 1.00 | 7.17 | 2.93 | 7.17 |
| #FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#1659AA
Tritanopia (blue-blind)
#774D6C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7e31ad; /* rgb */ color: rgb(126, 49, 173); /* oklch */ color: oklch(48.2% 0.191 309.4);
Tailwind
colors: {
custom: {
50: '#a870c6',
500: '#7e31ad',
950: '#000000',
},
}SCSS
$custom: #7e31ad; $custom-light: #a870c6; $custom-dark: #000000;
JSON
{
"hex": "#7e31ad",
"rgb": {
"r": 126,
"g": 49,
"b": 173
},
"hsl": {
"h": 277.258,
"s": 55.856,
"l": 43.529
},
"oklch": {
"l": 0.48249,
"c": 0.1908,
"h": 309.4
},
"luminance": 0.09649
}Semantic roles & 50–950 ramp
primary
#7E31AD
secondary
#94C377
accent
#DF4982
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82