#7E58B2#7E58B2
#7E58B2 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.1% C 0.140 H 301.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #7E58B2 |
|---|---|
| RGB | rgb(126, 88, 178) |
| HSL | hsl(265, 37%, 52%) |
| HSV | hsv(265, 51%, 70%) |
| CMYK | cmyk(29.2%, 50.6%, 0%, 30.2%) |
| CIE-LAB | lab(45.12, 34.57, -42.34) |
| CIE-LCH | lch(45.12, 54.66, 309.23°) |
| OKLab | oklab(54.12% 0.0727 -0.1191) |
| OKLCH | oklch(54.12% 0.14 301.4) |
| XYZ | xyz(20.1280, 14.6294, 43.8742) |
| Luminance | 0.1463 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.60
Deep Lavender
#8D5EB7
ΔE00 3.69
Amethyst
#9B5FC0
ΔE00 6.58
Light Indigo
#6D5ACF
ΔE00 6.66
Slate Blue
#6A5ACD
ΔE00 6.84
Iris
#6258C4
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E58B2 #8CB258
analogous
#585FB2 #7E58B2 #AB58B2
triadic
#7E58B2 #B27E58 #58B27E
tetradic
#7E58B2 #B2585F #8CB258 #58B2AB
square
#7E58B2 #B2585F #8CB258 #58B2AB
split-complementary
#7E58B2 #B2AB58 #5FB258
monochromatic
#442D62 #61418C #7E58B2 #9E82C5 #BFACD9
Accessibility & contrast
On white
5.35
#7E58B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#7E58B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E58B2
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E58B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E58B2 | 1.00 | 5.35 | 3.93 | 5.35 |
| #FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B6AB5
Deuteranopia (green-blind)
#456AB0
Tritanopia (blue-blind)
#74697D
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7e58b2; /* rgb */ color: rgb(126, 88, 178); /* oklch */ color: oklch(54.1% 0.140 301.4);
Tailwind
colors: {
custom: {
50: '#a688c9',
500: '#7e58b2',
950: '#000000',
},
}SCSS
$custom: #7e58b2; $custom-light: #a688c9; $custom-dark: #000000;
JSON
{
"hex": "#7e58b2",
"rgb": {
"r": 126,
"g": 88,
"b": 178
},
"hsl": {
"h": 265.333,
"s": 36.885,
"l": 52.157
},
"oklch": {
"l": 0.54119,
"c": 0.13952,
"h": 301.4
},
"luminance": 0.14629
}Semantic roles & 50–950 ramp
primary
#7E58B2
secondary
#B6C79F
accent
#CD5B9D
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100B13
muted
#7F7C82