#7F5AF7#7F5AF7
#7F5AF7 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.3% C 0.223 H 288.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5AF7 |
|---|---|
| RGB | rgb(127, 90, 247) |
| HSL | hsl(254, 91%, 66%) |
| HSV | hsv(254, 64%, 97%) |
| CMYK | cmyk(48.6%, 63.6%, 0%, 3.1%) |
| CIE-LAB | lab(50.14, 52.25, -73.67) |
| CIE-LCH | lch(50.14, 90.32, 305.35°) |
| OKLab | oklab(59.26% 0.0708 -0.2111) |
| OKLCH | oklch(59.26% 0.223 288.5) |
| XYZ | xyz(29.1922, 18.5385, 90.0178) |
| Luminance | 0.1854 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.25
Mediumslateblue
#7B68EE
ΔE00 3.90
Light Indigo
#6D5ACF
ΔE00 6.31
Lighter Purple
#A55AF4
ΔE00 6.61
Slate Blue
#6A5ACD
ΔE00 6.82
Dark Periwinkle
#665FD1
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5AF7 #D2F75A
analogous
#5A83F7 #7F5AF7 #CD5AF7
triadic
#7F5AF7 #F77F5A #5AF77F
tetradic
#7F5AF7 #F75A83 #D2F75A #5AF7CD
square
#7F5AF7 #F75A83 #D2F75A #5AF7CD
split-complementary
#7F5AF7 #F7CD5A #83F75A
monochromatic
#380ACD #5220F4 #7F5AF7 #AC94FA #DACFFD
Accessibility & contrast
On white
4.46
#7F5AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#7F5AF7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F5AF7
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5AF7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F5AF7 | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007BFC
Deuteranopia (green-blind)
#0073F4
Tritanopia (blue-blind)
#5680A1
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #7f5af7; /* rgb */ color: rgb(127, 90, 247); /* oklch */ color: oklch(59.3% 0.223 288.5);
Tailwind
colors: {
custom: {
50: '#ad8bfb',
500: '#7f5af7',
950: '#000000',
},
}SCSS
$custom: #7f5af7; $custom-light: #ad8bfb; $custom-dark: #000000;
JSON
{
"hex": "#7f5af7",
"rgb": {
"r": 127,
"g": 90,
"b": 247
},
"hsl": {
"h": 254.14,
"s": 90.751,
"l": 66.078
},
"oklch": {
"l": 0.59256,
"c": 0.22264,
"h": 288.5
},
"luminance": 0.1854
}Semantic roles & 50–950 ramp
primary
#7F5AF7
secondary
#E4F0BD
accent
#E600AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86