#7E51DC#7E51DC
#7E51DC is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.8% C 0.202 H 293.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #7E51DC |
|---|---|
| RGB | rgb(126, 81, 220) |
| HSL | hsl(259, 67%, 59%) |
| HSV | hsv(259, 63%, 86%) |
| CMYK | cmyk(42.7%, 63.2%, 0%, 13.7%) |
| CIE-LAB | lab(46.29, 49.53, -64.71) |
| CIE-LCH | lch(46.29, 81.49, 307.43°) |
| OKLab | oklab(55.83% 0.0812 -0.1848) |
| OKLCH | oklch(55.83% 0.202 293.7) |
| XYZ | xyz(24.4614, 15.4871, 69.3968) |
| Luminance | 0.1549 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.47
Light Indigo
#6D5ACF
ΔE00 4.23
Slate Blue
#6A5ACD
ΔE00 4.77
Bluish Purple
#703BE7
ΔE00 5.49
Dark Periwinkle
#665FD1
ΔE00 6.14
Purpleish Blue
#6140EF
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E51DC #AFDC51
analogous
#516ADC #7E51DC #C351DC
triadic
#7E51DC #DC7E51 #51DC7E
tetradic
#7E51DC #DC516A #AFDC51 #51DCC3
square
#7E51DC #DC516A #AFDC51 #51DCC3
split-complementary
#7E51DC #DCC351 #6ADC51
monochromatic
#441E95 #5C28C8 #7E51DC #A484E6 #CAB7F0
Accessibility & contrast
On white
5.12
#7E51DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#7E51DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E51DC
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E51DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E51DC | 1.00 | 5.12 | 4.10 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#64718F
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7e51dc; /* rgb */ color: rgb(126, 81, 220); /* oklch */ color: oklch(55.8% 0.202 293.7);
Tailwind
colors: {
custom: {
50: '#aa84e8',
500: '#7e51dc',
950: '#000000',
},
}SCSS
$custom: #7e51dc; $custom-light: #aa84e8; $custom-dark: #000000;
JSON
{
"hex": "#7e51dc",
"rgb": {
"r": 126,
"g": 81,
"b": 220
},
"hsl": {
"h": 259.424,
"s": 66.507,
"l": 59.02
},
"oklch": {
"l": 0.55833,
"c": 0.20183,
"h": 293.7
},
"luminance": 0.15488
}Semantic roles & 50–950 ramp
primary
#7E51DC
secondary
#CEE0A9
accent
#E93EB2
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84