#7A51EC#7A51EC
#7A51EC is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.221 H 289.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #7A51EC |
|---|---|
| RGB | rgb(122, 81, 236) |
| HSL | hsl(256, 80%, 62%) |
| HSV | hsv(256, 66%, 93%) |
| CMYK | cmyk(48.3%, 65.7%, 0%, 7.5%) |
| CIE-LAB | lab(47.08, 53.13, -72.52) |
| CIE-LCH | lch(47.08, 89.90, 306.23°) |
| OKLab | oklab(56.67% 0.0741 -0.2078) |
| OKLCH | oklch(56.67% 0.221 289.6) |
| XYZ | xyz(26.1044, 16.0775, 81.0684) |
| Luminance | 0.1608 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.81
Light Indigo
#6D5ACF
ΔE00 4.92
Slate Blue
#6A5ACD
ΔE00 5.41
Bluish Purple
#703BE7
ΔE00 5.42
Purpleish Blue
#6140EF
ΔE00 5.45
Dark Periwinkle
#665FD1
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A51EC #C3EC51
analogous
#5176EC #7A51EC #C851EC
triadic
#7A51EC #EC7A51 #51EC7A
tetradic
#7A51EC #EC5176 #C3EC51 #51ECC8
square
#7A51EC #EC5176 #C3EC51 #51ECC8
split-complementary
#7A51EC #ECC851 #76EC51
monochromatic
#3C13AF #501AE6 #7A51EC #A488F2 #CEBFF8
Accessibility & contrast
On white
4.98
#7A51EC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.22
#7A51EC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A51EC
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A51EC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A51EC | 1.00 | 4.98 | 4.22 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#547798
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #7a51ec; /* rgb */ color: rgb(122, 81, 236); /* oklch */ color: oklch(56.7% 0.221 289.6);
Tailwind
colors: {
custom: {
50: '#a984f3',
500: '#7a51ec',
950: '#000000',
},
}SCSS
$custom: #7a51ec; $custom-light: #a984f3; $custom-dark: #000000;
JSON
{
"hex": "#7a51ec",
"rgb": {
"r": 122,
"g": 81,
"b": 236
},
"hsl": {
"h": 255.871,
"s": 80.311,
"l": 62.157
},
"oklch": {
"l": 0.56674,
"c": 0.22066,
"h": 289.6
},
"luminance": 0.16079
}Semantic roles & 50–950 ramp
primary
#7A51EC
secondary
#DAE9B0
accent
#DD09A5
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85