#7F5AFB#7F5AFB
#7F5AFB is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.6% C 0.227 H 288.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5AFB |
|---|---|
| RGB | rgb(127, 90, 251) |
| HSL | hsl(254, 95%, 67%) |
| HSV | hsv(254, 64%, 98%) |
| CMYK | cmyk(49.4%, 64.1%, 0%, 1.6%) |
| CIE-LAB | lab(50.44, 53.36, -75.42) |
| CIE-LCH | lch(50.44, 92.39, 305.28°) |
| OKLab | oklab(59.56% 0.0704 -0.2162) |
| OKLCH | oklch(59.56% 0.227 288) |
| XYZ | xyz(29.8161, 18.7880, 93.3035) |
| Luminance | 0.1879 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.69
Mediumslateblue
#7B68EE
ΔE00 3.96
Lighter Purple
#A55AF4
ΔE00 6.62
Light Indigo
#6D5ACF
ΔE00 6.77
Dark Periwinkle
#665FD1
ΔE00 7.21
Slate Blue
#6A5ACD
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5AFB #D6FB5A
analogous
#5A86FB #7F5AFB #D05AFB
triadic
#7F5AFB #FB7F5A #5AFB7F
tetradic
#7F5AFB #FB5A86 #D6FB5A #5AFBD0
square
#7F5AFB #FB5A86 #D6FB5A #5AFBD0
split-complementary
#7F5AFB #FBD05A #86FB5A
monochromatic
#3505D5 #511EFA #7F5AFB #AD96FC #DCD2FE
Accessibility & contrast
On white
4.41
#7F5AFB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#7F5AFB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F5AFB
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5AFB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F5AFB | 1.00 | 4.41 | 4.76 | 4.76 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#0074F8
Tritanopia (blue-blind)
#5381A3
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #7f5afb; /* rgb */ color: rgb(127, 90, 251); /* oklch */ color: oklch(59.6% 0.227 288.0);
Tailwind
colors: {
custom: {
50: '#ad8bfe',
500: '#7f5afb',
950: '#000000',
},
}SCSS
$custom: #7f5afb; $custom-light: #ad8bfe; $custom-dark: #000000;
JSON
{
"hex": "#7f5afb",
"rgb": {
"r": 127,
"g": 90,
"b": 251
},
"hsl": {
"h": 253.789,
"s": 95.266,
"l": 66.863
},
"oklch": {
"l": 0.59563,
"c": 0.22738,
"h": 288
},
"luminance": 0.18789
}Semantic roles & 50–950 ramp
primary
#7F5AFB
secondary
#E6F2BF
accent
#E600B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86