#7E52D4#7E52D4
#7E52D4 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.4% C 0.191 H 295.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #7E52D4 |
|---|---|
| RGB | rgb(126, 82, 212) |
| HSL | hsl(260, 60%, 58%) |
| HSV | hsv(260, 61%, 83%) |
| CMYK | cmyk(40.6%, 61.3%, 0%, 16.9%) |
| CIE-LAB | lab(45.94, 46.85, -60.72) |
| CIE-LCH | lch(45.94, 76.70, 307.65°) |
| OKLab | oklab(55.4% 0.0807 -0.173) |
| OKLCH | oklch(55.4% 0.191 295) |
| XYZ | xyz(23.5020, 15.2231, 63.9747) |
| Luminance | 0.1522 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.05
Light Indigo
#6D5ACF
ΔE00 3.94
Slate Blue
#6A5ACD
ΔE00 4.47
Iris
#6258C4
ΔE00 5.92
Bluish Purple
#703BE7
ΔE00 5.99
Dark Periwinkle
#665FD1
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E52D4 #A8D452
analogous
#5267D4 #7E52D4 #BF52D4
triadic
#7E52D4 #D47E52 #52D47E
tetradic
#7E52D4 #D45267 #A8D452 #52D4BF
square
#7E52D4 #D45267 #A8D452 #52D4BF
split-complementary
#7E52D4 #D4BF52 #67D452
monochromatic
#452289 #5E2EBA #7E52D4 #A383E0 #C7B4EC
Accessibility & contrast
On white
5.19
#7E52D4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#7E52D4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E52D4
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E52D4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E52D4 | 1.00 | 5.19 | 4.04 | 5.19 |
| #FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#006BD1
Tritanopia (blue-blind)
#686F8B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7e52d4; /* rgb */ color: rgb(126, 82, 212); /* oklch */ color: oklch(55.4% 0.191 295.0);
Tailwind
colors: {
custom: {
50: '#a985e2',
500: '#7e52d4',
950: '#000000',
},
}SCSS
$custom: #7e52d4; $custom-light: #a985e2; $custom-dark: #000000;
JSON
{
"hex": "#7e52d4",
"rgb": {
"r": 126,
"g": 82,
"b": 212
},
"hsl": {
"h": 260.308,
"s": 60.185,
"l": 57.647
},
"oklch": {
"l": 0.55398,
"c": 0.19093,
"h": 295
},
"luminance": 0.15224
}Semantic roles & 50–950 ramp
primary
#7E52D4
secondary
#C9DBA7
accent
#E344AE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83