#7E4BB5#7E4BB5
#7E4BB5 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.2% C 0.164 H 303.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #7E4BB5 |
|---|---|
| RGB | rgb(126, 75, 181) |
| HSL | hsl(269, 42%, 50%) |
| HSV | hsv(269, 59%, 71%) |
| CMYK | cmyk(30.4%, 58.6%, 0%, 29%) |
| CIE-LAB | lab(42.47, 42.68, -48.34) |
| CIE-LCH | lch(42.47, 64.48, 311.44°) |
| OKLab | oklab(52.22% 0.0901 -0.1366) |
| OKLCH | oklch(52.22% 0.164 303.4) |
| XYZ | xyz(19.4589, 12.8040, 45.1534) |
| Luminance | 0.1280 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.87
Purply
#983FB2
ΔE00 5.78
Deep Lavender
#8D5EB7
ΔE00 6.35
Darkorchid
#9932CC
ΔE00 6.50
Bluey Purple
#6241C7
ΔE00 6.81
Light Indigo
#6D5ACF
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E4BB5 #82B54B
analogous
#4B4DB5 #7E4BB5 #B34BB5
triadic
#7E4BB5 #B57E4B #4BB57E
tetradic
#7E4BB5 #B54B4D #82B54B #4BB5B3
square
#7E4BB5 #B54B4D #82B54B #4BB5B3
split-complementary
#7E4BB5 #B5B34B #4DB54B
monochromatic
#42275F #60398A #7E4BB5 #9D76C7 #BCA2D9
Accessibility & contrast
On white
5.90
#7E4BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#7E4BB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E4BB5
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E4BB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E4BB5 | 1.00 | 5.90 | 3.56 | 5.90 |
| #FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B63B8
Deuteranopia (green-blind)
#3264B3
Tritanopia (blue-blind)
#746079
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7e4bb5; /* rgb */ color: rgb(126, 75, 181); /* oklch */ color: oklch(52.2% 0.164 303.4);
Tailwind
colors: {
custom: {
50: '#a77fcc',
500: '#7e4bb5',
950: '#000000',
},
}SCSS
$custom: #7e4bb5; $custom-light: #a77fcc; $custom-dark: #000000;
JSON
{
"hex": "#7e4bb5",
"rgb": {
"r": 126,
"g": 75,
"b": 181
},
"hsl": {
"h": 268.868,
"s": 41.732,
"l": 50.196
},
"oklch": {
"l": 0.52216,
"c": 0.16367,
"h": 303.4
},
"luminance": 0.12804
}Semantic roles & 50–950 ramp
primary
#7E4BB5
secondary
#AFC696
accent
#D25696
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82