#7E31AF#7E31AF
#7E31AF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.193 H 308.8°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).
Color values
| HEX | #7E31AF |
|---|---|
| RGB | rgb(126, 49, 175) |
| HSL | hsl(277, 56%, 44%) |
| HSV | hsv(277, 72%, 69%) |
| CMYK | cmyk(28%, 72%, 0%, 31.4%) |
| CIE-LAB | lab(37.35, 54.16, -53.04) |
| CIE-LCH | lch(37.35, 75.81, 315.60°) |
| OKLab | oklab(48.4% 0.1207 -0.1503) |
| OKLCH | oklch(48.4% 0.193 308.8) |
| XYZ | xyz(17.4388, 9.7277, 41.5081) |
| Luminance | 0.0973 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.33
Rebeccapurple
#663399
ΔE00 5.05
Darkviolet
#9400D3
ΔE00 5.93
Darkorchid
#9932CC
ΔE00 6.07
Purply
#983FB2
ΔE00 6.34
Blueviolet
#8A2BE2
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E31AF #62AF31
analogous
#3F31AF #7E31AF #AF31A1
triadic
#7E31AF #AF7E31 #31AF7E
tetradic
#7E31AF #AF3F31 #62AF31 #31A1AF
square
#7E31AF #AF3F31 #62AF31 #31A1AF
split-complementary
#7E31AF #A1AF31 #31AF3F
monochromatic
#39164F #5C247F #7E31AF #9D4FCE #B77FDB
Accessibility & contrast
On white
7.13
#7E31AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#7E31AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E31AF
7.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E31AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E31AF | 1.00 | 7.13 | 2.95 | 7.13 |
| #FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#1059AC
Tritanopia (blue-blind)
#774E6D
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7e31af; /* rgb */ color: rgb(126, 49, 175); /* oklch */ color: oklch(48.4% 0.193 308.8);
Tailwind
colors: {
custom: {
50: '#a870c8',
500: '#7e31af',
950: '#000000',
},
}SCSS
$custom: #7e31af; $custom-light: #a870c8; $custom-dark: #000000;
JSON
{
"hex": "#7e31af",
"rgb": {
"r": 126,
"g": 49,
"b": 175
},
"hsl": {
"h": 276.667,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.48396,
"c": 0.19281,
"h": 308.8
},
"luminance": 0.09727
}Semantic roles & 50–950 ramp
primary
#7E31AF
secondary
#95C478
accent
#E04883
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82