#7F5AF6#7F5AF6
#7F5AF6 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.2% C 0.221 H 288.7°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5AF6 |
|---|---|
| RGB | rgb(127, 90, 246) |
| HSL | hsl(254, 90%, 66%) |
| HSV | hsv(254, 63%, 96%) |
| CMYK | cmyk(48.4%, 63.4%, 0%, 3.5%) |
| CIE-LAB | lab(50.07, 51.97, -73.23) |
| CIE-LCH | lch(50.07, 89.80, 305.36°) |
| OKLab | oklab(59.18% 0.0709 -0.2098) |
| OKLCH | oklch(59.18% 0.221 288.7) |
| XYZ | xyz(29.0383, 18.4769, 89.2073) |
| Luminance | 0.1848 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.14
Mediumslateblue
#7B68EE
ΔE00 3.90
Light Indigo
#6D5ACF
ΔE00 6.20
Lighter Purple
#A55AF4
ΔE00 6.61
Slate Blue
#6A5ACD
ΔE00 6.71
Dark Periwinkle
#665FD1
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5AF6 #D1F65A
analogous
#5A83F6 #7F5AF6 #CD5AF6
triadic
#7F5AF6 #F67F5A #5AF67F
tetradic
#7F5AF6 #F65A83 #D1F65A #5AF6CD
square
#7F5AF6 #F65A83 #D1F65A #5AF6CD
split-complementary
#7F5AF6 #F6CD5A #83F65A
monochromatic
#380BCB #5220F3 #7F5AF6 #AC94F9 #D9CEFC
Accessibility & contrast
On white
4.47
#7F5AF6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.70
#7F5AF6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F5AF6
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5AF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F5AF6 | 1.00 | 4.47 | 4.70 | 4.70 |
| #FFFFFF | 4.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#0073F3
Tritanopia (blue-blind)
#5680A0
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #7f5af6; /* rgb */ color: rgb(127, 90, 246); /* oklch */ color: oklch(59.2% 0.221 288.7);
Tailwind
colors: {
custom: {
50: '#ad8bfa',
500: '#7f5af6',
950: '#000000',
},
}SCSS
$custom: #7f5af6; $custom-light: #ad8bfa; $custom-dark: #000000;
JSON
{
"hex": "#7f5af6",
"rgb": {
"r": 127,
"g": 90,
"b": 246
},
"hsl": {
"h": 254.231,
"s": 89.655,
"l": 65.882
},
"oklch": {
"l": 0.5918,
"c": 0.22145,
"h": 288.7
},
"luminance": 0.18478
}Semantic roles & 50–950 ramp
primary
#7F5AF6
secondary
#E3F0BC
accent
#E600AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85