#7E5AFB#7E5AFB
#7E5AFB is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.5% C 0.227 H 287.7°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #7E5AFB |
|---|---|
| RGB | rgb(126, 90, 251) |
| HSL | hsl(253, 95%, 67%) |
| HSV | hsv(253, 64%, 98%) |
| CMYK | cmyk(49.8%, 64.1%, 0%, 1.6%) |
| CIE-LAB | lab(50.35, 53.19, -75.57) |
| CIE-LCH | lch(50.35, 92.41, 305.14°) |
| OKLab | oklab(59.48% 0.0691 -0.2167) |
| OKLCH | oklch(59.48% 0.227 287.7) |
| XYZ | xyz(29.6678, 18.7116, 93.2965) |
| Luminance | 0.1871 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.75
Mediumslateblue
#7B68EE
ΔE00 3.95
Light Indigo
#6D5ACF
ΔE00 6.69
Lighter Purple
#A55AF4
ΔE00 6.77
Dark Periwinkle
#665FD1
ΔE00 7.10
Slate Blue
#6A5ACD
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E5AFB #D7FB5A
analogous
#5A87FB #7E5AFB #CE5AFB
triadic
#7E5AFB #FB7E5A #5AFB7E
tetradic
#7E5AFB #FB5A87 #D7FB5A #5AFBCE
square
#7E5AFB #FB5A87 #D7FB5A #5AFBCE
split-complementary
#7E5AFB #FBCE5A #87FB5A
monochromatic
#3405D5 #4F1EFA #7E5AFB #AD96FC #DBD2FE
Accessibility & contrast
On white
4.43
#7E5AFB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#7E5AFB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E5AFB
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E5AFB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E5AFB | 1.00 | 4.43 | 4.74 | 4.74 |
| #FFFFFF | 4.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#0073F8
Tritanopia (blue-blind)
#5181A3
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #7e5afb; /* rgb */ color: rgb(126, 90, 251); /* oklch */ color: oklch(59.5% 0.227 287.7);
Tailwind
colors: {
custom: {
50: '#ad8bfe',
500: '#7e5afb',
950: '#000000',
},
}SCSS
$custom: #7e5afb; $custom-light: #ad8bfe; $custom-dark: #000000;
JSON
{
"hex": "#7e5afb",
"rgb": {
"r": 126,
"g": 90,
"b": 251
},
"hsl": {
"h": 253.416,
"s": 95.266,
"l": 66.863
},
"oklch": {
"l": 0.59476,
"c": 0.22744,
"h": 287.7
},
"luminance": 0.18713
}Semantic roles & 50–950 ramp
primary
#7E5AFB
secondary
#E7F2BF
accent
#E600B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86