#7E45BA#7E45BA
#7E45BA is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.7% C 0.178 H 303.1°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #7E45BA |
|---|---|
| RGB | rgb(126, 69, 186) |
| HSL | hsl(269, 46%, 50%) |
| HSV | hsv(269, 63%, 73%) |
| CMYK | cmyk(32.3%, 62.9%, 0%, 27.1%) |
| CIE-LAB | lab(41.59, 47.13, -52.68) |
| CIE-LCH | lch(41.59, 70.69, 311.82°) |
| OKLab | oklab(51.68% 0.0973 -0.1494) |
| OKLCH | oklch(51.68% 0.178 303.1) |
| XYZ | xyz(19.5932, 12.2370, 47.7746) |
| Luminance | 0.1224 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.43
Darkorchid
#9932CC
ΔE00 5.47
Purply
#983FB2
ΔE00 5.76
Bluey Purple
#6241C7
ΔE00 5.84
Blueviolet
#8A2BE2
ΔE00 6.45
Bluish Purple
#703BE7
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E45BA #81BA45
analogous
#4546BA #7E45BA #B945BA
triadic
#7E45BA #BA7E45 #45BA7E
tetradic
#7E45BA #BA4546 #81BA45 #45BAB9
square
#7E45BA #BA4546 #81BA45 #45BAB9
split-complementary
#7E45BA #BAB945 #46BA45
monochromatic
#422461 #60348D #7E45BA #9D72CB #BC9EDB
Accessibility & contrast
On white
6.09
#7E45BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#7E45BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E45BA
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E45BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E45BA | 1.00 | 6.09 | 3.45 | 6.09 |
| #FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2262B7
Tritanopia (blue-blind)
#725E79
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7e45ba; /* rgb */ color: rgb(126, 69, 186); /* oklch */ color: oklch(51.7% 0.178 303.1);
Tailwind
colors: {
custom: {
50: '#a77ccf',
500: '#7e45ba',
950: '#000000',
},
}SCSS
$custom: #7e45ba; $custom-light: #a77ccf; $custom-dark: #000000;
JSON
{
"hex": "#7e45ba",
"rgb": {
"r": 126,
"g": 69,
"b": 186
},
"hsl": {
"h": 269.231,
"s": 45.882,
"l": 50
},
"oklch": {
"l": 0.51682,
"c": 0.17829,
"h": 303.1
},
"luminance": 0.12237
}Semantic roles & 50–950 ramp
primary
#7E45BA
secondary
#AEC893
accent
#D65296
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82