#7E5FD8#7E5FD8
#7E5FD8 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.7% C 0.178 H 291.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #7E5FD8 |
|---|---|
| RGB | rgb(126, 95, 216) |
| HSL | hsl(255, 61%, 61%) |
| HSV | hsv(255, 56%, 85%) |
| CMYK | cmyk(41.7%, 56%, 0%, 15.3%) |
| CIE-LAB | lab(48.98, 40.65, -58.10) |
| CIE-LCH | lch(48.98, 70.91, 304.98°) |
| OKLab | oklab(57.71% 0.0656 -0.1653) |
| OKLCH | oklch(57.71% 0.178 291.6) |
| XYZ | xyz(25.0877, 17.5772, 67.0233) |
| Luminance | 0.1758 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.13
Light Indigo
#6D5ACF
ΔE00 3.66
Slate Blue
#6A5ACD
ΔE00 4.23
Mediumslateblue
#7B68EE
ΔE00 4.42
Dark Periwinkle
#665FD1
ΔE00 4.62
Iris
#6258C4
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E5FD8 #B9D85F
analogous
#5F7CD8 #7E5FD8 #BA5FD8
triadic
#7E5FD8 #D87E5F #5FD87E
tetradic
#7E5FD8 #D85F7C #B9D85F #5FD8BA
square
#7E5FD8 #D85F7C #B9D85F #5FD8BA
split-complementary
#7E5FD8 #D8BA5F #7CD85F
monochromatic
#422598 #5831C9 #7E5FD8 #A690E4 #CDC1F0
Accessibility & contrast
On white
4.65
#7E5FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.52
#7E5FD8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #7E5FD8
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E5FD8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E5FD8 | 1.00 | 4.65 | 4.52 | 4.65 |
| #FFFFFF | 4.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C76DC
Deuteranopia (green-blind)
#2572D5
Tritanopia (blue-blind)
#657992
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #7e5fd8; /* rgb */ color: rgb(126, 95, 216); /* oklch */ color: oklch(57.7% 0.178 291.6);
Tailwind
colors: {
custom: {
50: '#a98de5',
500: '#7e5fd8',
950: '#000000',
},
}SCSS
$custom: #7e5fd8; $custom-light: #a98de5; $custom-dark: #000000;
JSON
{
"hex": "#7e5fd8",
"rgb": {
"r": 126,
"g": 95,
"b": 216
},
"hsl": {
"h": 255.372,
"s": 60.804,
"l": 60.98
},
"oklch": {
"l": 0.57711,
"c": 0.17787,
"h": 291.6
},
"luminance": 0.17578
}Semantic roles & 50–950 ramp
primary
#7E5FD8
secondary
#D5E0B3
accent
#C81D9D
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84