#7E5CD5#7E5CD5
#7E5CD5 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.0% C 0.178 H 292.8°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).
Color values
| HEX | #7E5CD5 |
|---|---|
| RGB | rgb(126, 92, 213) |
| HSL | hsl(257, 59%, 60%) |
| HSV | hsv(257, 57%, 84%) |
| CMYK | cmyk(40.8%, 56.8%, 0%, 16.5%) |
| CIE-LAB | lab(48.13, 41.54, -57.76) |
| CIE-LCH | lch(48.13, 71.15, 305.72°) |
| OKLab | oklab(57.02% 0.0691 -0.1643) |
| OKLCH | oklch(57.02% 0.178 292.8) |
| XYZ | xyz(24.4383, 16.8934, 64.9110) |
| Luminance | 0.1689 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.87
Light Indigo
#6D5ACF
ΔE00 3.32
Slate Blue
#6A5ACD
ΔE00 3.92
Dark Periwinkle
#665FD1
ΔE00 4.75
Mediumslateblue
#7B68EE
ΔE00 5.38
Iris
#6258C4
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E5CD5 #B3D55C
analogous
#5C76D5 #7E5CD5 #BB5CD5
triadic
#7E5CD5 #D57E5C #5CD57E
tetradic
#7E5CD5 #D55C76 #B3D55C #5CD5BB
square
#7E5CD5 #D55C76 #B3D55C #5CD5BB
split-complementary
#7E5CD5 #D5BB5C #76D55C
monochromatic
#442591 #5A32C2 #7E5CD5 #A58DE2 #CBBDEE
Accessibility & contrast
On white
4.80
#7E5CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.38
#7E5CD5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E5CD5
4.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E5CD5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E5CD5 | 1.00 | 4.80 | 4.38 | 4.80 |
| #FFFFFF | 4.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1674D9
Deuteranopia (green-blind)
#2370D2
Tritanopia (blue-blind)
#677690
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #7e5cd5; /* rgb */ color: rgb(126, 92, 213); /* oklch */ color: oklch(57.0% 0.178 292.8);
Tailwind
colors: {
custom: {
50: '#a98be3',
500: '#7e5cd5',
950: '#000000',
},
}SCSS
$custom: #7e5cd5; $custom-light: #a98be3; $custom-dark: #000000;
JSON
{
"hex": "#7e5cd5",
"rgb": {
"r": 126,
"g": 92,
"b": 213
},
"hsl": {
"h": 256.86,
"s": 59.024,
"l": 59.804
},
"oklch": {
"l": 0.5702,
"c": 0.17829,
"h": 292.8
},
"luminance": 0.16894
}Semantic roles & 50–950 ramp
primary
#7E5CD5
secondary
#D1DEAF
accent
#E246B6
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84