#7D51E9#7D51E9
#7D51E9 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.217 H 291.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #7D51E9 |
|---|---|
| RGB | rgb(125, 81, 233) |
| HSL | hsl(257, 78%, 62%) |
| HSV | hsv(257, 65%, 91%) |
| CMYK | cmyk(46.4%, 65.2%, 0%, 8.6%) |
| CIE-LAB | lab(47.14, 52.85, -70.71) |
| CIE-LCH | lch(47.14, 88.28, 306.77°) |
| OKLab | oklab(56.72% 0.0785 -0.2024) |
| OKLCH | oklch(56.72% 0.217 291.2) |
| XYZ | xyz(26.1037, 16.1271, 78.8124) |
| Luminance | 0.1613 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.30
Light Indigo
#6D5ACF
ΔE00 4.91
Slate Blue
#6A5ACD
ΔE00 5.44
Bluish Purple
#703BE7
ΔE00 5.51
Purpleish Blue
#6140EF
ΔE00 5.77
Dark Periwinkle
#665FD1
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D51E9 #BDE951
analogous
#5171E9 #7D51E9 #C951E9
triadic
#7D51E9 #E97D51 #51E97D
tetradic
#7D51E9 #E95171 #BDE951 #51E9C9
square
#7D51E9 #E95171 #BDE951 #51E9C9
split-complementary
#7D51E9 #E9C951 #71E951
monochromatic
#4116AA #551CE0 #7D51E9 #A687F0 #CEBEF7
Accessibility & contrast
On white
4.97
#7D51E9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#7D51E9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D51E9
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D51E9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D51E9 | 1.00 | 4.97 | 4.23 | 4.97 |
| #FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072EE
Deuteranopia (green-blind)
#006CE6
Tritanopia (blue-blind)
#5B7696
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #7d51e9; /* rgb */ color: rgb(125, 81, 233); /* oklch */ color: oklch(56.7% 0.217 291.2);
Tailwind
colors: {
custom: {
50: '#ab84f1',
500: '#7d51e9',
950: '#000000',
},
}SCSS
$custom: #7d51e9; $custom-light: #ab84f1; $custom-dark: #000000;
JSON
{
"hex": "#7d51e9",
"rgb": {
"r": 125,
"g": 81,
"b": 233
},
"hsl": {
"h": 257.368,
"s": 77.551,
"l": 61.569
},
"oklch": {
"l": 0.56718,
"c": 0.21712,
"h": 291.2
},
"luminance": 0.16128
}Semantic roles & 50–950 ramp
primary
#7D51E9
secondary
#D7E7AF
accent
#DA0C9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85