#7E4FB5#7E4FB5
#7E4FB5 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.8% C 0.158 H 302.6°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).
Color values
| HEX | #7E4FB5 |
|---|---|
| RGB | rgb(126, 79, 181) |
| HSL | hsl(268, 41%, 51%) |
| HSV | hsv(268, 56%, 71%) |
| CMYK | cmyk(30.4%, 56.4%, 0%, 29%) |
| CIE-LAB | lab(43.31, 40.46, -46.99) |
| CIE-LCH | lch(43.31, 62.01, 310.73°) |
| OKLab | oklab(52.83% 0.0849 -0.1327) |
| OKLCH | oklch(52.83% 0.158 302.6) |
| XYZ | xyz(19.7388, 13.3638, 45.2467) |
| Luminance | 0.1336 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.35
Deep Lavender
#8D5EB7
ΔE00 5.47
Purply
#983FB2
ΔE00 6.25
Light Indigo
#6D5ACF
ΔE00 6.85
Slate Blue
#6A5ACD
ΔE00 7.06
Darkorchid
#9932CC
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E4FB5 #86B54F
analogous
#4F53B5 #7E4FB5 #B14FB5
triadic
#7E4FB5 #B57E4F #4FB57E
tetradic
#7E4FB5 #B54F53 #86B54F #4FB5B1
square
#7E4FB5 #B54F53 #86B54F #4FB5B1
split-complementary
#7E4FB5 #B5B14F #53B54F
monochromatic
#432961 #603B8C #7E4FB5 #9E7AC7 #BDA5D9
Accessibility & contrast
On white
5.72
#7E4FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.67
#7E4FB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E4FB5
5.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E4FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E4FB5 | 1.00 | 5.72 | 3.67 | 5.72 |
| #FFFFFF | 5.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2665B8
Deuteranopia (green-blind)
#3766B3
Tritanopia (blue-blind)
#74637A
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #7e4fb5; /* rgb */ color: rgb(126, 79, 181); /* oklch */ color: oklch(52.8% 0.158 302.6);
Tailwind
colors: {
custom: {
50: '#a782cc',
500: '#7e4fb5',
950: '#000000',
},
}SCSS
$custom: #7e4fb5; $custom-light: #a782cc; $custom-dark: #000000;
JSON
{
"hex": "#7e4fb5",
"rgb": {
"r": 126,
"g": 79,
"b": 181
},
"hsl": {
"h": 267.647,
"s": 40.8,
"l": 50.98
},
"oklch": {
"l": 0.52832,
"c": 0.15755,
"h": 302.6
},
"luminance": 0.13364
}Semantic roles & 50–950 ramp
primary
#7E4FB5
secondary
#B2C699
accent
#D15799
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82