#7E4BBA#7E4BBA
#7E4BBA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.5% C 0.170 H 302.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #7E4BBA |
|---|---|
| RGB | rgb(126, 75, 186) |
| HSL | hsl(268, 45%, 51%) |
| HSV | hsv(268, 60%, 73%) |
| CMYK | cmyk(32.3%, 59.7%, 0%, 27.1%) |
| CIE-LAB | lab(42.78, 43.93, -50.76) |
| CIE-LCH | lch(42.78, 67.13, 310.87°) |
| OKLab | oklab(52.55% 0.09 -0.1438) |
| OKLCH | oklch(52.55% 0.17 302.1) |
| XYZ | xyz(19.9811, 13.0129, 47.9039) |
| Luminance | 0.1301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.49
Purply
#983FB2
ΔE00 6.10
Darkorchid
#9932CC
ΔE00 6.24
Bluey Purple
#6241C7
ΔE00 6.33
Deep Lavender
#8D5EB7
ΔE00 6.50
Light Indigo
#6D5ACF
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E4BBA #87BA4B
analogous
#4B4FBA #7E4BBA #B54BBA
triadic
#7E4BBA #BA7E4B #4BBA7E
tetradic
#7E4BBA #BA4B4F #87BA4B #4BBAB5
square
#7E4BBA #BA4B4F #87BA4B #4BBAB5
split-complementary
#7E4BBA #BAB54B #4FBA4B
monochromatic
#432664 #603790 #7E4BBA #9E77CB #BDA3DC
Accessibility & contrast
On white
5.83
#7E4BBA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#7E4BBA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E4BBA
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E4BBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E4BBA | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1064BE
Deuteranopia (green-blind)
#2C65B7
Tritanopia (blue-blind)
#72627B
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #7e4bba; /* rgb */ color: rgb(126, 75, 186); /* oklch */ color: oklch(52.5% 0.170 302.1);
Tailwind
colors: {
custom: {
50: '#a780cf',
500: '#7e4bba',
950: '#000000',
},
}SCSS
$custom: #7e4bba; $custom-light: #a780cf; $custom-dark: #000000;
JSON
{
"hex": "#7e4bba",
"rgb": {
"r": 126,
"g": 75,
"b": 186
},
"hsl": {
"h": 267.568,
"s": 44.578,
"l": 51.176
},
"oklch": {
"l": 0.52549,
"c": 0.16963,
"h": 302.1
},
"luminance": 0.13013
}Semantic roles & 50–950 ramp
primary
#7E4BBA
secondary
#B2C998
accent
#D45499
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82