#7C51EB#7C51EB
#7C51EB is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.8% C 0.219 H 290.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #7C51EB |
|---|---|
| RGB | rgb(124, 81, 235) |
| HSL | hsl(257, 79%, 62%) |
| HSV | hsv(257, 66%, 92%) |
| CMYK | cmyk(47.2%, 65.5%, 0%, 7.8%) |
| CIE-LAB | lab(47.19, 53.21, -71.76) |
| CIE-LCH | lch(47.19, 89.33, 306.56°) |
| OKLab | oklab(56.78% 0.0769 -0.2055) |
| OKLCH | oklch(56.78% 0.219 290.5) |
| XYZ | xyz(26.2458, 16.1671, 80.3188) |
| Luminance | 0.1617 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.49
Light Indigo
#6D5ACF
ΔE00 4.99
Slate Blue
#6A5ACD
ΔE00 5.50
Bluish Purple
#703BE7
ΔE00 5.51
Purpleish Blue
#6140EF
ΔE00 5.67
Dark Periwinkle
#665FD1
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C51EB #C0EB51
analogous
#5173EB #7C51EB #C951EB
triadic
#7C51EB #EB7C51 #51EB7C
tetradic
#7C51EB #EB5173 #C0EB51 #51EBC9
square
#7C51EB #EB5173 #C0EB51 #51EBC9
split-complementary
#7C51EB #EBC951 #73EB51
monochromatic
#3F14AE #531AE5 #7C51EB #A588F1 #CFBFF8
Accessibility & contrast
On white
4.96
#7C51EB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#7C51EB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C51EB
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C51EB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C51EB | 1.00 | 4.96 | 4.23 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#587797
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #7c51eb; /* rgb */ color: rgb(124, 81, 235); /* oklch */ color: oklch(56.8% 0.219 290.5);
Tailwind
colors: {
custom: {
50: '#aa84f2',
500: '#7c51eb',
950: '#000000',
},
}SCSS
$custom: #7c51eb; $custom-light: #aa84f2; $custom-dark: #000000;
JSON
{
"hex": "#7c51eb",
"rgb": {
"r": 124,
"g": 81,
"b": 235
},
"hsl": {
"h": 256.753,
"s": 79.381,
"l": 61.961
},
"oklch": {
"l": 0.5678,
"c": 0.21946,
"h": 290.5
},
"luminance": 0.16168
}Semantic roles & 50–950 ramp
primary
#7C51EB
secondary
#D8E8B0
accent
#DC0AA1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85