#7E54BB#7E54BB
#7E54BB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.0% C 0.157 H 300.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #7E54BB |
|---|---|
| RGB | rgb(126, 84, 187) |
| HSL | hsl(264, 43%, 53%) |
| HSV | hsv(264, 55%, 73%) |
| CMYK | cmyk(32.6%, 55.1%, 0%, 26.7%) |
| CIE-LAB | lab(44.75, 39.17, -48.19) |
| CIE-LCH | lch(44.75, 62.10, 309.11°) |
| OKLab | oklab(54.01% 0.0786 -0.1362) |
| OKLCH | oklch(54.01% 0.157 300) |
| XYZ | xyz(20.7420, 14.3640, 48.6838) |
| Luminance | 0.1436 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.23
Deep Lavender
#8D5EB7
ΔE00 4.74
Light Indigo
#6D5ACF
ΔE00 5.50
Slate Blue
#6A5ACD
ΔE00 5.78
Iris
#6258C4
ΔE00 6.38
Purpley
#8756E4
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E54BB #91BB54
analogous
#545DBB #7E54BB #B154BB
triadic
#7E54BB #BB7E54 #54BB7E
tetradic
#7E54BB #BB545D #91BB54 #54BBB1
square
#7E54BB #BB545D #91BB54 #54BBB1
split-complementary
#7E54BB #BBB154 #5DBB54
monochromatic
#442A6A #613C96 #7E54BB #9F80CC #C0ACDE
Accessibility & contrast
On white
5.42
#7E54BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#7E54BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E54BB
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E54BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E54BB | 1.00 | 5.42 | 3.87 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A6ABE
Deuteranopia (green-blind)
#3869B9
Tritanopia (blue-blind)
#71687F
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7e54bb; /* rgb */ color: rgb(126, 84, 187); /* oklch */ color: oklch(54.0% 0.157 300.0);
Tailwind
colors: {
custom: {
50: '#a785d0',
500: '#7e54bb',
950: '#000000',
},
}SCSS
$custom: #7e54bb; $custom-light: #a785d0; $custom-dark: #000000;
JSON
{
"hex": "#7e54bb",
"rgb": {
"r": 126,
"g": 84,
"b": 187
},
"hsl": {
"h": 264.466,
"s": 43.096,
"l": 53.137
},
"oklch": {
"l": 0.54013,
"c": 0.15728,
"h": 300
},
"luminance": 0.14364
}Semantic roles & 50–950 ramp
primary
#7E54BB
secondary
#B9CC9F
accent
#D355A0
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82