#7E51DF#7E51DF
#7E51DF is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.1% C 0.205 H 293.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #7E51DF |
|---|---|
| RGB | rgb(126, 81, 223) |
| HSL | hsl(259, 69%, 60%) |
| HSV | hsv(259, 64%, 87%) |
| CMYK | cmyk(43.5%, 63.7%, 0%, 12.5%) |
| CIE-LAB | lab(46.51, 50.34, -66.07) |
| CIE-LCH | lch(46.51, 83.06, 307.30°) |
| OKLab | oklab(56.06% 0.0809 -0.1888) |
| OKLCH | oklch(56.06% 0.205 293.2) |
| XYZ | xyz(24.8623, 15.6475, 71.5080) |
| Luminance | 0.1565 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.29
Light Indigo
#6D5ACF
ΔE00 4.35
Slate Blue
#6A5ACD
ΔE00 4.90
Bluish Purple
#703BE7
ΔE00 5.45
Purpleish Blue
#6140EF
ΔE00 6.05
Dark Periwinkle
#665FD1
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E51DF #B2DF51
analogous
#516BDF #7E51DF #C551DF
triadic
#7E51DF #DF7E51 #51DF7E
tetradic
#7E51DF #DF516B #B2DF51 #51DFC5
square
#7E51DF #DF516B #B2DF51 #51DFC5
split-complementary
#7E51DF #DFC551 #6BDF51
monochromatic
#441C99 #5B26CD #7E51DF #A485E9 #CBB8F2
Accessibility & contrast
On white
5.09
#7E51DF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#7E51DF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E51DF
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E51DF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E51DF | 1.00 | 5.09 | 4.13 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#006CDC
Tritanopia (blue-blind)
#637291
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7e51df; /* rgb */ color: rgb(126, 81, 223); /* oklch */ color: oklch(56.1% 0.205 293.2);
Tailwind
colors: {
custom: {
50: '#aa84ea',
500: '#7e51df',
950: '#000000',
},
}SCSS
$custom: #7e51df; $custom-light: #aa84ea; $custom-dark: #000000;
JSON
{
"hex": "#7e51df",
"rgb": {
"r": 126,
"g": 81,
"b": 223
},
"hsl": {
"h": 259.014,
"s": 68.932,
"l": 59.608
},
"oklch": {
"l": 0.56056,
"c": 0.20539,
"h": 293.2
},
"luminance": 0.15648
}Semantic roles & 50–950 ramp
primary
#7E51DF
secondary
#D0E1AA
accent
#EC3CB4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84