#7E52DB#7E52DB
#7E52DB is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.199 H 293.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #7E52DB |
|---|---|
| RGB | rgb(126, 82, 219) |
| HSL | hsl(259, 66%, 59%) |
| HSV | hsv(259, 63%, 86%) |
| CMYK | cmyk(42.5%, 62.6%, 0%, 14.1%) |
| CIE-LAB | lab(46.42, 48.73, -63.93) |
| CIE-LCH | lch(46.42, 80.38, 307.31°) |
| OKLab | oklab(55.91% 0.0802 -0.1825) |
| OKLCH | oklch(55.91% 0.199 293.7) |
| XYZ | xyz(24.4042, 15.5840, 68.7263) |
| Luminance | 0.1558 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.39
Light Indigo
#6D5ACF
ΔE00 4.06
Slate Blue
#6A5ACD
ΔE00 4.62
Bluish Purple
#703BE7
ΔE00 5.73
Dark Periwinkle
#665FD1
ΔE00 5.98
Iris
#6258C4
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E52DB #AFDB52
analogous
#526BDB #7E52DB #C352DB
triadic
#7E52DB #DB7E52 #52DB7E
tetradic
#7E52DB #DB526B #AFDB52 #52DBC3
square
#7E52DB #DB526B #AFDB52 #52DBC3
split-complementary
#7E52DB #DBC352 #6BDB52
monochromatic
#441F94 #5C29C6 #7E52DB #A485E6 #CAB7F0
Accessibility & contrast
On white
5.10
#7E52DB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#7E52DB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E52DB
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E52DB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E52DB | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#006CD8
Tritanopia (blue-blind)
#65728F
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7e52db; /* rgb */ color: rgb(126, 82, 219); /* oklch */ color: oklch(55.9% 0.199 293.7);
Tailwind
colors: {
custom: {
50: '#aa85e7',
500: '#7e52db',
950: '#000000',
},
}SCSS
$custom: #7e52db; $custom-light: #aa85e7; $custom-dark: #000000;
JSON
{
"hex": "#7e52db",
"rgb": {
"r": 126,
"g": 82,
"b": 219
},
"hsl": {
"h": 259.27,
"s": 65.55,
"l": 59.02
},
"oklch": {
"l": 0.55905,
"c": 0.19933,
"h": 293.7
},
"luminance": 0.15585
}Semantic roles & 50–950 ramp
primary
#7E52DB
secondary
#CEDFAA
accent
#E93FB2
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84