#7E51BF#7E51BF
#7E51BF is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.8% C 0.167 H 299.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).
Color values
| HEX | #7E51BF |
|---|---|
| RGB | rgb(126, 81, 191) |
| HSL | hsl(265, 46%, 53%) |
| HSV | hsv(265, 58%, 75%) |
| CMYK | cmyk(34%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(44.35, 41.89, -51.16) |
| CIE-LCH | lch(44.35, 66.13, 309.31°) |
| OKLab | oklab(53.8% 0.0825 -0.1449) |
| OKLCH | oklch(53.8% 0.167 299.6) |
| XYZ | xyz(20.9483, 14.0819, 50.8945) |
| Luminance | 0.1408 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.81
Light Indigo
#6D5ACF
ΔE00 5.36
Deep Lavender
#8D5EB7
ΔE00 5.57
Slate Blue
#6A5ACD
ΔE00 5.66
Purpley
#8756E4
ΔE00 5.93
Iris
#6258C4
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E51BF #92BF51
analogous
#515BBF #7E51BF #B551BF
triadic
#7E51BF #BF7E51 #51BF7E
tetradic
#7E51BF #BF515B #92BF51 #51BFB5
square
#7E51BF #BF515B #92BF51 #51BFB5
split-complementary
#7E51BF #BFB551 #5BBF51
monochromatic
#45286D #61399A #7E51BF #9F7ECF #C0AAE0
Accessibility & contrast
On white
5.50
#7E51BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.82
#7E51BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E51BF
5.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E51BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E51BF | 1.00 | 5.50 | 3.82 | 5.50 |
| #FFFFFF | 5.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C69C3
Deuteranopia (green-blind)
#2F68BC
Tritanopia (blue-blind)
#706880
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #7e51bf; /* rgb */ color: rgb(126, 81, 191); /* oklch */ color: oklch(53.8% 0.167 299.6);
Tailwind
colors: {
custom: {
50: '#a784d3',
500: '#7e51bf',
950: '#000000',
},
}SCSS
$custom: #7e51bf; $custom-light: #a784d3; $custom-dark: #000000;
JSON
{
"hex": "#7e51bf",
"rgb": {
"r": 126,
"g": 81,
"b": 191
},
"hsl": {
"h": 264.545,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.53798,
"c": 0.16679,
"h": 299.6
},
"luminance": 0.14082
}Semantic roles & 50–950 ramp
primary
#7E51BF
secondary
#BACE9E
accent
#D652A0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83