#7E4BB7#7E4BB7
#7E4BB7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.166 H 302.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7E4BB7 |
|---|---|
| RGB | rgb(126, 75, 183) |
| HSL | hsl(268, 43%, 51%) |
| HSV | hsv(268, 59%, 72%) |
| CMYK | cmyk(31.1%, 59%, 0%, 28.2%) |
| CIE-LAB | lab(42.59, 43.18, -49.31) |
| CIE-LCH | lch(42.59, 65.54, 311.20°) |
| OKLab | oklab(52.35% 0.0901 -0.1395) |
| OKLCH | oklch(52.35% 0.166 302.8) |
| XYZ | xyz(19.6656, 12.8867, 46.2419) |
| Luminance | 0.1289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.11
Purply
#983FB2
ΔE00 5.90
Darkorchid
#9932CC
ΔE00 6.38
Deep Lavender
#8D5EB7
ΔE00 6.40
Bluey Purple
#6241C7
ΔE00 6.61
Light Indigo
#6D5ACF
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E4BB7 #84B74B
analogous
#4B4EB7 #7E4BB7 #B44BB7
triadic
#7E4BB7 #B77E4B #4BB77E
tetradic
#7E4BB7 #B74B4E #84B74B #4BB7B4
square
#7E4BB7 #B74B4E #84B74B #4BB7B4
split-complementary
#7E4BB7 #B7B44B #4EB74B
monochromatic
#422761 #60388D #7E4BB7 #9D77C8 #BDA2DA
Accessibility & contrast
On white
5.87
#7E4BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#7E4BB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E4BB7
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E4BB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E4BB7 | 1.00 | 5.87 | 3.58 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1764BA
Deuteranopia (green-blind)
#3064B5
Tritanopia (blue-blind)
#73617A
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #7e4bb7; /* rgb */ color: rgb(126, 75, 183); /* oklch */ color: oklch(52.3% 0.166 302.8);
Tailwind
colors: {
custom: {
50: '#a77fcd',
500: '#7e4bb7',
950: '#000000',
},
}SCSS
$custom: #7e4bb7; $custom-light: #a77fcd; $custom-dark: #000000;
JSON
{
"hex": "#7e4bb7",
"rgb": {
"r": 126,
"g": 75,
"b": 183
},
"hsl": {
"h": 268.333,
"s": 42.857,
"l": 50.588
},
"oklch": {
"l": 0.52348,
"c": 0.16605,
"h": 302.8
},
"luminance": 0.12887
}Semantic roles & 50–950 ramp
primary
#7E4BB7
secondary
#B0C797
accent
#D35597
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82