#7F4EF5#7F4EF5
#7F4EF5 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.4% C 0.234 H 290.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4EF5 |
|---|---|
| RGB | rgb(127, 78, 245) |
| HSL | hsl(258, 89%, 63%) |
| HSV | hsv(258, 68%, 96%) |
| CMYK | cmyk(48.2%, 68.2%, 0%, 3.9%) |
| CIE-LAB | lab(47.69, 57.98, -76.55) |
| CIE-LCH | lch(47.69, 96.03, 307.14°) |
| OKLab | oklab(57.45% 0.0823 -0.2195) |
| OKLCH | oklch(57.45% 0.234 290.5) |
| XYZ | xyz(27.9535, 16.5523, 88.0905) |
| Luminance | 0.1655 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.06
Bluish Purple
#703BE7
ΔE00 5.66
Purpleish Blue
#6140EF
ΔE00 5.83
Light Indigo
#6D5ACF
ΔE00 6.31
Mediumslateblue
#7B68EE
ΔE00 6.74
Slate Blue
#6A5ACD
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4EF5 #C4F54E
analogous
#4E70F5 #7F4EF5 #D34EF5
triadic
#7F4EF5 #F57F4E #4EF57F
tetradic
#7F4EF5 #F54E70 #C4F54E #4EF5D3
square
#7F4EF5 #F54E70 #C4F54E #4EF5D3
split-complementary
#7F4EF5 #F5D34E #70F54E
monochromatic
#3F0BBE #5514F2 #7F4EF5 #A988F8 #D3C2FC
Accessibility & contrast
On white
4.87
#7F4EF5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#7F4EF5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4EF5
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4EF5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4EF5 | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074FA
Deuteranopia (green-blind)
#006DF2
Tritanopia (blue-blind)
#58789C
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7f4ef5; /* rgb */ color: rgb(127, 78, 245); /* oklch */ color: oklch(57.4% 0.234 290.5);
Tailwind
colors: {
custom: {
50: '#ad83fa',
500: '#7f4ef5',
950: '#000000',
},
}SCSS
$custom: #7f4ef5; $custom-light: #ad83fa; $custom-dark: #000000;
JSON
{
"hex": "#7f4ef5",
"rgb": {
"r": 127,
"g": 78,
"b": 245
},
"hsl": {
"h": 257.605,
"s": 89.305,
"l": 63.333
},
"oklch": {
"l": 0.57445,
"c": 0.23444,
"h": 290.5
},
"luminance": 0.16553
}Semantic roles & 50–950 ramp
primary
#7F4EF5
secondary
#DCEDB2
accent
#E600A2
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85