#7F51E4#7F51E4
#7F51E4 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.211 H 292.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #7F51E4 |
|---|---|
| RGB | rgb(127, 81, 228) |
| HSL | hsl(259, 73%, 61%) |
| HSV | hsv(259, 64%, 89%) |
| CMYK | cmyk(44.3%, 64.5%, 0%, 10.6%) |
| CIE-LAB | lab(46.97, 51.87, -68.15) |
| CIE-LCH | lch(46.97, 85.65, 307.28°) |
| OKLab | oklab(56.53% 0.0818 -0.1948) |
| OKLCH | oklch(56.53% 0.211 292.8) |
| XYZ | xyz(25.6946, 15.9975, 75.1178) |
| Luminance | 0.1600 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.99
Light Indigo
#6D5ACF
ΔE00 4.75
Slate Blue
#6A5ACD
ΔE00 5.30
Bluish Purple
#703BE7
ΔE00 5.55
Purpleish Blue
#6140EF
ΔE00 6.06
Dark Periwinkle
#665FD1
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F51E4 #B6E451
analogous
#516CE4 #7F51E4 #C951E4
triadic
#7F51E4 #E47F51 #51E47F
tetradic
#7F51E4 #E4516C #B6E451 #51E4C9
square
#7F51E4 #E4516C #B6E451 #51E4C9
split-complementary
#7F51E4 #E4C951 #6CE451
monochromatic
#4419A2 #5A21D7 #7F51E4 #A686EC #CDBBF4
Accessibility & contrast
On white
5.00
#7F51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#7F51E4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F51E4
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F51E4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F51E4 | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E9
Deuteranopia (green-blind)
#006DE1
Tritanopia (blue-blind)
#627493
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7f51e4; /* rgb */ color: rgb(127, 81, 228); /* oklch */ color: oklch(56.5% 0.211 292.8);
Tailwind
colors: {
custom: {
50: '#ab84ed',
500: '#7f51e4',
950: '#000000',
},
}SCSS
$custom: #7f51e4; $custom-light: #ab84ed; $custom-dark: #000000;
JSON
{
"hex": "#7f51e4",
"rgb": {
"r": 127,
"g": 81,
"b": 228
},
"hsl": {
"h": 258.776,
"s": 73.134,
"l": 60.588
},
"oklch": {
"l": 0.56527,
"c": 0.2113,
"h": 292.8
},
"luminance": 0.15998
}Semantic roles & 50–950 ramp
primary
#7F51E4
secondary
#D3E4AC
accent
#D51098
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84