#7E58D2#7E58D2
#7E58D2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.2% C 0.180 H 294.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #7E58D2 |
|---|---|
| RGB | rgb(126, 88, 210) |
| HSL | hsl(259, 58%, 58%) |
| HSV | hsv(259, 58%, 82%) |
| CMYK | cmyk(40%, 58.1%, 0%, 17.6%) |
| CIE-LAB | lab(47.06, 42.99, -57.76) |
| CIE-LCH | lch(47.06, 72.00, 306.66°) |
| OKLab | oklab(56.18% 0.0739 -0.1643) |
| OKLCH | oklch(56.18% 0.18 294.2) |
| XYZ | xyz(23.7237, 16.0677, 62.8117) |
| Luminance | 0.1607 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.92
Light Indigo
#6D5ACF
ΔE00 3.32
Slate Blue
#6A5ACD
ΔE00 3.90
Dark Periwinkle
#665FD1
ΔE00 5.19
Iris
#6258C4
ΔE00 5.58
Mediumslateblue
#7B68EE
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E58D2 #ACD258
analogous
#586FD2 #7E58D2 #BB58D2
triadic
#7E58D2 #D27E58 #58D27E
tetradic
#7E58D2 #D2586F #ACD258 #58D2BB
square
#7E58D2 #D2586F #ACD258 #58D2BB
split-complementary
#7E58D2 #D2BB58 #6FD258
monochromatic
#45258A #5D32BB #7E58D2 #A388DF #C8B8EC
Accessibility & contrast
On white
4.98
#7E58D2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#7E58D2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E58D2
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E58D2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E58D2 | 1.00 | 4.98 | 4.21 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0871D6
Deuteranopia (green-blind)
#1F6ECF
Tritanopia (blue-blind)
#68728D
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #7e58d2; /* rgb */ color: rgb(126, 88, 210); /* oklch */ color: oklch(56.2% 0.180 294.2);
Tailwind
colors: {
custom: {
50: '#a888e0',
500: '#7e58d2',
950: '#000000',
},
}SCSS
$custom: #7e58d2; $custom-light: #a888e0; $custom-dark: #000000;
JSON
{
"hex": "#7e58d2",
"rgb": {
"r": 126,
"g": 88,
"b": 210
},
"hsl": {
"h": 258.689,
"s": 57.547,
"l": 58.431
},
"oklch": {
"l": 0.56177,
"c": 0.18018,
"h": 294.2
},
"luminance": 0.16068
}Semantic roles & 50–950 ramp
primary
#7E58D2
secondary
#CCDBAB
accent
#E147B1
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83