#7E31E2#7E31E2
#7E31E2 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.5% C 0.244 H 296.6°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #7E31E2 |
|---|---|
| RGB | rgb(126, 49, 226) |
| HSL | hsl(266, 75%, 54%) |
| HSV | hsv(266, 78%, 89%) |
| CMYK | cmyk(44.2%, 78.3%, 0%, 11.4%) |
| CIE-LAB | lab(41.41, 66.03, -76.10) |
| CIE-LCH | lch(41.41, 100.75, 310.95°) |
| OKLab | oklab(52.51% 0.109 -0.2181) |
| OKLCH | oklch(52.51% 0.244 296.6) |
| XYZ | xyz(23.4263, 12.1227, 73.0424) |
| Luminance | 0.1212 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 1.86
Bluish Purple
#703BE7
ΔE00 2.61
Burple
#6832E3
ΔE00 3.22
Violet
#8F00FF
ΔE00 4.20
Purpley Blue
#5F34E7
ΔE00 4.34
Violet (survey)
#9A0EEA
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E31E2 #95E231
analogous
#313DE2 #7E31E2 #D731E2
triadic
#7E31E2 #E27E31 #31E27E
tetradic
#7E31E2 #E2313D #95E231 #31E2D7
square
#7E31E2 #E2313D #95E231 #31E2D7
split-complementary
#7E31E2 #E2D731 #3DE231
monochromatic
#451386 #601ABB #7E31E2 #A067EA #C19CF1
Accessibility & contrast
On white
6.13
#7E31E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.42
#7E31E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E31E2
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E31E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E31E2 | 1.00 | 6.13 | 3.42 | 6.13 |
| #FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#63638A
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7e31e2; /* rgb */ color: rgb(126, 49, 226); /* oklch */ color: oklch(52.5% 0.244 296.6);
Tailwind
colors: {
custom: {
50: '#ac72ec',
500: '#7e31e2',
950: '#000000',
},
}SCSS
$custom: #7e31e2; $custom-light: #ac72ec; $custom-dark: #000000;
JSON
{
"hex": "#7e31e2",
"rgb": {
"r": 126,
"g": 49,
"b": 226
},
"hsl": {
"h": 266.102,
"s": 75.319,
"l": 53.922
},
"oklch": {
"l": 0.5251,
"c": 0.24377,
"h": 296.6
},
"luminance": 0.12123
}Semantic roles & 50–950 ramp
primary
#7E31E2
secondary
#BCDD92
accent
#F236A0
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110916
muted
#807B84