#7E5BB2#7E5BB2
#7E5BB2 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.6% C 0.135 H 300.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #7E5BB2 |
|---|---|
| RGB | rgb(126, 91, 178) |
| HSL | hsl(264, 36%, 53%) |
| HSV | hsv(264, 49%, 70%) |
| CMYK | cmyk(29.2%, 48.9%, 0%, 30.2%) |
| CIE-LAB | lab(45.81, 32.82, -41.24) |
| CIE-LCH | lch(45.81, 52.71, 308.52°) |
| OKLab | oklab(54.64% 0.0685 -0.1159) |
| OKLCH | oklch(54.64% 0.135 300.6) |
| XYZ | xyz(20.3793, 15.1321, 43.9580) |
| Luminance | 0.1513 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.34
Deep Lavender
#8D5EB7
ΔE00 3.38
Amethyst
#9B5FC0
ΔE00 6.38
Light Indigo
#6D5ACF
ΔE00 6.67
Slate Blue
#6A5ACD
ΔE00 6.85
Iris
#6258C4
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E5BB2 #8FB25B
analogous
#5B63B2 #7E5BB2 #AA5BB2
triadic
#7E5BB2 #B27E5B #5BB27E
tetradic
#7E5BB2 #B25B63 #8FB25B #5BB2AA
square
#7E5BB2 #B25B63 #8FB25B #5BB2AA
split-complementary
#7E5BB2 #B2AA5B #63B25B
monochromatic
#442F64 #61428D #7E5BB2 #9F85C6 #C0AED9
Accessibility & contrast
On white
5.22
#7E5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#7E5BB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E5BB2
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E5BB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E5BB2 | 1.00 | 5.22 | 4.03 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#486CB0
Tritanopia (blue-blind)
#746B7E
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #7e5bb2; /* rgb */ color: rgb(126, 91, 178); /* oklch */ color: oklch(54.6% 0.135 300.6);
Tailwind
colors: {
custom: {
50: '#a68ac9',
500: '#7e5bb2',
950: '#000000',
},
}SCSS
$custom: #7e5bb2; $custom-light: #a68ac9; $custom-dark: #000000;
JSON
{
"hex": "#7e5bb2",
"rgb": {
"r": 126,
"g": 91,
"b": 178
},
"hsl": {
"h": 264.138,
"s": 36.1,
"l": 52.745
},
"oklch": {
"l": 0.54635,
"c": 0.13463,
"h": 300.6
},
"luminance": 0.15132
}Semantic roles & 50–950 ramp
primary
#7E5BB2
secondary
#B8C7A2
accent
#CC5C9F
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82