#7F5EF7#7F5EF7
#7F5EF7 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.8% C 0.218 H 287.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5EF7 |
|---|---|
| RGB | rgb(127, 94, 247) |
| HSL | hsl(253, 91%, 67%) |
| HSV | hsv(253, 62%, 97%) |
| CMYK | cmyk(48.6%, 61.9%, 0%, 3.1%) |
| CIE-LAB | lab(50.96, 50.07, -72.35) |
| CIE-LCH | lch(50.96, 87.98, 304.69°) |
| OKLab | oklab(59.85% 0.0669 -0.2072) |
| OKLCH | oklch(59.85% 0.218 287.9) |
| XYZ | xyz(29.5387, 19.2315, 90.1333) |
| Luminance | 0.1923 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.95
Purpley
#8756E4
ΔE00 3.85
Light Indigo
#6D5ACF
ΔE00 6.57
Lighter Purple
#A55AF4
ΔE00 6.59
Dark Periwinkle
#665FD1
ΔE00 6.82
Slate Blue
#6A5ACD
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5EF7 #D6F75E
analogous
#5E8AF7 #7F5EF7 #CC5EF7
triadic
#7F5EF7 #F77F5E #5EF77F
tetradic
#7F5EF7 #F75E8A #D6F75E #5EF7CC
square
#7F5EF7 #F75E8A #D6F75E #5EF7CC
split-complementary
#7F5EF7 #F7CC5E #8AF75E
monochromatic
#350AD0 #5124F4 #7F5EF7 #AD98FA #DCD3FD
Accessibility & contrast
On white
4.33
#7F5EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.85
#7F5EF7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F5EF7
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5EF7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F5EF7 | 1.00 | 4.33 | 4.85 | 4.85 |
| #FFFFFF | 4.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007DFC
Deuteranopia (green-blind)
#0075F4
Tritanopia (blue-blind)
#5582A2
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #7f5ef7; /* rgb */ color: rgb(127, 94, 247); /* oklch */ color: oklch(59.8% 0.218 287.9);
Tailwind
colors: {
custom: {
50: '#ad8dfb',
500: '#7f5ef7',
950: '#000000',
},
}SCSS
$custom: #7f5ef7; $custom-light: #ad8dfb; $custom-dark: #000000;
JSON
{
"hex": "#7f5ef7",
"rgb": {
"r": 127,
"g": 94,
"b": 247
},
"hsl": {
"h": 252.941,
"s": 90.533,
"l": 66.863
},
"oklch": {
"l": 0.59847,
"c": 0.21771,
"h": 287.9
},
"luminance": 0.19233
}Semantic roles & 50–950 ramp
primary
#7F5EF7
secondary
#E6F1C0
accent
#E600B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85