#7E54DB#7E54DB
#7E54DB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.197 H 293.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #7E54DB |
|---|---|
| RGB | rgb(126, 84, 219) |
| HSL | hsl(259, 65%, 59%) |
| HSV | hsv(259, 62%, 86%) |
| CMYK | cmyk(42.5%, 61.6%, 0%, 14.1%) |
| CIE-LAB | lab(46.83, 47.64, -63.28) |
| CIE-LCH | lch(46.83, 79.20, 306.97°) |
| OKLab | oklab(56.2% 0.078 -0.1805) |
| OKLCH | oklch(56.2% 0.197 293.4) |
| XYZ | xyz(24.5572, 15.8901, 68.7773) |
| Luminance | 0.1589 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.14
Light Indigo
#6D5ACF
ΔE00 3.83
Slate Blue
#6A5ACD
ΔE00 4.41
Dark Periwinkle
#665FD1
ΔE00 5.67
Iris
#6258C4
ΔE00 6.11
Bluish Purple
#703BE7
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E54DB #B1DB54
analogous
#546EDB #7E54DB #C254DB
triadic
#7E54DB #DB7E54 #54DB7E
tetradic
#7E54DB #DB546E #B1DB54 #54DBC2
square
#7E54DB #DB546E #B1DB54 #54DBC2
split-complementary
#7E54DB #DBC254 #6EDB54
monochromatic
#441F95 #5B2AC8 #7E54DB #A487E6 #CAB9F0
Accessibility & contrast
On white
5.03
#7E54DB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#7E54DB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E54DB
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E54DB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E54DB | 1.00 | 5.03 | 4.18 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#647390
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7e54db; /* rgb */ color: rgb(126, 84, 219); /* oklch */ color: oklch(56.2% 0.197 293.4);
Tailwind
colors: {
custom: {
50: '#aa86e7',
500: '#7e54db',
950: '#000000',
},
}SCSS
$custom: #7e54db; $custom-light: #aa86e7; $custom-dark: #000000;
JSON
{
"hex": "#7e54db",
"rgb": {
"r": 126,
"g": 84,
"b": 219
},
"hsl": {
"h": 258.667,
"s": 65.217,
"l": 59.412
},
"oklch": {
"l": 0.562,
"c": 0.19669,
"h": 293.4
},
"luminance": 0.15891
}Semantic roles & 50–950 ramp
primary
#7E54DB
secondary
#CFE0AB
accent
#E840B4
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84