#7E5AAA#7E5AAA
#7E5AAA is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.0% C 0.126 H 303.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #7E5AAA |
|---|---|
| RGB | rgb(126, 90, 170) |
| HSL | hsl(267, 32%, 51%) |
| HSV | hsv(267, 47%, 67%) |
| CMYK | cmyk(25.9%, 47.1%, 0%, 33.3%) |
| CIE-LAB | lab(45.15, 31.39, -37.59) |
| CIE-LCH | lch(45.15, 48.97, 309.86°) |
| OKLab | oklab(54% 0.0689 -0.1053) |
| OKLCH | oklch(54% 0.126 303.2) |
| XYZ | xyz(19.5145, 14.6503, 39.8221) |
| Luminance | 0.1465 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.00
Deep Lavender
#8D5EB7
ΔE00 3.71
Amethyst
#9B5FC0
ΔE00 6.76
Dark Lavender
#856798
ΔE00 7.59
Light Indigo
#6D5ACF
ΔE00 8.11
Deep Lilac
#966EBD
ΔE00 8.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E5AAA #86AA5A
analogous
#5A5EAA #7E5AAA #A65AAA
triadic
#7E5AAA #AA7E5A #5AAA7E
tetradic
#7E5AAA #AA5A5E #86AA5A #5AAAA6
square
#7E5AAA #AA5A5E #86AA5A #5AAAA6
split-complementary
#7E5AAA #AAA65A #5EAA5A
monochromatic
#432F5B #604483 #7E5AAA #9E82BF #BDABD4
Accessibility & contrast
On white
5.34
#7E5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#7E5AAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E5AAA
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E5AAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E5AAA | 1.00 | 5.34 | 3.93 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#446AAD
Deuteranopia (green-blind)
#4C6BA8
Tritanopia (blue-blind)
#76687A
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7e5aaa; /* rgb */ color: rgb(126, 90, 170); /* oklch */ color: oklch(54.0% 0.126 303.2);
Tailwind
colors: {
custom: {
50: '#a589c3',
500: '#7e5aaa',
950: '#000000',
},
}SCSS
$custom: #7e5aaa; $custom-light: #a589c3; $custom-dark: #000000;
JSON
{
"hex": "#7e5aaa",
"rgb": {
"r": 126,
"g": 90,
"b": 170
},
"hsl": {
"h": 267,
"s": 32,
"l": 50.98
},
"oklch": {
"l": 0.54,
"c": 0.12582,
"h": 303.2
},
"luminance": 0.1465
}Semantic roles & 50–950 ramp
primary
#7E5AAA
secondary
#B2C29E
accent
#C86099
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B12
muted
#7F7C81