#7E51BB#7E51BB
#7E51BB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.5% C 0.162 H 300.6°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #7E51BB |
|---|---|
| RGB | rgb(126, 81, 187) |
| HSL | hsl(265, 44%, 53%) |
| HSV | hsv(265, 57%, 73%) |
| CMYK | cmyk(32.6%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(44.10, 40.87, -49.23) |
| CIE-LCH | lch(44.10, 63.98, 309.69°) |
| OKLab | oklab(53.54% 0.0825 -0.1393) |
| OKLCH | oklch(53.54% 0.162 300.6) |
| XYZ | xyz(20.5141, 13.9082, 48.6079) |
| Luminance | 0.1391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.17
Deep Lavender
#8D5EB7
ΔE00 5.31
Light Indigo
#6D5ACF
ΔE00 5.82
Slate Blue
#6A5ACD
ΔE00 6.09
Purpley
#8756E4
ΔE00 6.55
Iris
#6258C4
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E51BB #8EBB51
analogous
#5159BB #7E51BB #B351BB
triadic
#7E51BB #BB7E51 #51BB7E
tetradic
#7E51BB #BB5159 #8EBB51 #51BBB3
square
#7E51BB #BB5159 #8EBB51 #51BBB3
split-complementary
#7E51BB #BBB351 #59BB51
monochromatic
#442969 #613A95 #7E51BB #9F7DCC #BFA9DD
Accessibility & contrast
On white
5.55
#7E51BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#7E51BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E51BB
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E51BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E51BB | 1.00 | 5.55 | 3.78 | 5.55 |
| #FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#3468B9
Tritanopia (blue-blind)
#72667E
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #7e51bb; /* rgb */ color: rgb(126, 81, 187); /* oklch */ color: oklch(53.5% 0.162 300.6);
Tailwind
colors: {
custom: {
50: '#a783d0',
500: '#7e51bb',
950: '#000000',
},
}SCSS
$custom: #7e51bb; $custom-light: #a783d0; $custom-dark: #000000;
JSON
{
"hex": "#7e51bb",
"rgb": {
"r": 126,
"g": 81,
"b": 187
},
"hsl": {
"h": 265.472,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.53535,
"c": 0.16186,
"h": 300.6
},
"luminance": 0.13908
}Semantic roles & 50–950 ramp
primary
#7E51BB
secondary
#B7CB9D
accent
#D4549E
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82