#7A51DC#7A51DC
#7A51DC is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.4% C 0.202 H 292.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7A51DC |
|---|---|
| RGB | rgb(122, 81, 220) |
| HSL | hsl(258, 67%, 59%) |
| HSV | hsv(258, 63%, 86%) |
| CMYK | cmyk(44.5%, 63.2%, 0%, 13.7%) |
| CIE-LAB | lab(45.89, 48.74, -65.38) |
| CIE-LCH | lch(45.89, 81.55, 306.70°) |
| OKLab | oklab(55.45% 0.0759 -0.1869) |
| OKLCH | oklch(55.45% 0.202 292.1) |
| XYZ | xyz(23.8832, 15.1890, 69.3697) |
| Luminance | 0.1519 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.98
Light Indigo
#6D5ACF
ΔE00 3.77
Slate Blue
#6A5ACD
ΔE00 4.28
Bluish Purple
#703BE7
ΔE00 5.19
Dark Periwinkle
#665FD1
ΔE00 5.67
Purpleish Blue
#6140EF
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A51DC #B3DC51
analogous
#516EDC #7A51DC #C051DC
triadic
#7A51DC #DC7A51 #51DC7A
tetradic
#7A51DC #DC516E #B3DC51 #51DCC0
square
#7A51DC #DC516E #B3DC51 #51DCC0
split-complementary
#7A51DC #DCC051 #6EDC51
monochromatic
#411E95 #5728C8 #7A51DC #A184E6 #C8B7F0
Accessibility & contrast
On white
5.20
#7A51DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#7A51DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A51DC
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A51DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A51DC | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#5D728F
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7a51dc; /* rgb */ color: rgb(122, 81, 220); /* oklch */ color: oklch(55.4% 0.202 292.1);
Tailwind
colors: {
custom: {
50: '#a784e8',
500: '#7a51dc',
950: '#000000',
},
}SCSS
$custom: #7a51dc; $custom-light: #a784e8; $custom-dark: #000000;
JSON
{
"hex": "#7a51dc",
"rgb": {
"r": 122,
"g": 81,
"b": 220
},
"hsl": {
"h": 257.698,
"s": 66.507,
"l": 59.02
},
"oklch": {
"l": 0.55447,
"c": 0.20169,
"h": 292.1
},
"luminance": 0.1519
}Semantic roles & 50–950 ramp
primary
#7A51DC
secondary
#D0E0A9
accent
#E93EB7
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84