#7E45BC#7E45BC
#7E45BC is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.181 H 302.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #7E45BC |
|---|---|
| RGB | rgb(126, 69, 188) |
| HSL | hsl(269, 47%, 50%) |
| HSV | hsv(269, 63%, 74%) |
| CMYK | cmyk(33%, 63.3%, 0%, 26.3%) |
| CIE-LAB | lab(41.72, 47.62, -53.64) |
| CIE-LCH | lch(41.72, 71.73, 311.60°) |
| OKLab | oklab(51.82% 0.0972 -0.1522) |
| OKLCH | oklch(51.82% 0.181 302.6) |
| XYZ | xyz(19.8073, 12.3227, 48.9022) |
| Luminance | 0.1232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.63
Darkorchid
#9932CC
ΔE00 5.39
Bluey Purple
#6241C7
ΔE00 5.67
Purply
#983FB2
ΔE00 5.91
Blueviolet
#8A2BE2
ΔE00 6.21
Bluish Purple
#703BE7
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E45BC #83BC45
analogous
#4547BC #7E45BC #B945BC
triadic
#7E45BC #BC7E45 #45BC7E
tetradic
#7E45BC #BC4547 #83BC45 #45BCB9
square
#7E45BC #BC4547 #83BC45 #45BCB9
split-complementary
#7E45BC #BCB945 #47BC45
monochromatic
#422463 #603490 #7E45BC #9D72CC #BC9FDC
Accessibility & contrast
On white
6.06
#7E45BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#7E45BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E45BC
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E45BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E45BC | 1.00 | 6.06 | 3.46 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#1E62B9
Tritanopia (blue-blind)
#725F7A
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7e45bc; /* rgb */ color: rgb(126, 69, 188); /* oklch */ color: oklch(51.8% 0.181 302.6);
Tailwind
colors: {
custom: {
50: '#a87cd1',
500: '#7e45bc',
950: '#000000',
},
}SCSS
$custom: #7e45bc; $custom-light: #a87cd1; $custom-dark: #000000;
JSON
{
"hex": "#7e45bc",
"rgb": {
"r": 126,
"g": 69,
"b": 188
},
"hsl": {
"h": 268.739,
"s": 47.036,
"l": 50.392
},
"oklch": {
"l": 0.51822,
"c": 0.18058,
"h": 302.6
},
"luminance": 0.12323
}Semantic roles & 50–950 ramp
primary
#7E45BC
secondary
#B0C994
accent
#D75197
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82