#7E45BB#7E45BB
#7E45BB is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.179 H 302.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #7E45BB |
|---|---|
| RGB | rgb(126, 69, 187) |
| HSL | hsl(269, 46%, 50%) |
| HSV | hsv(269, 63%, 73%) |
| CMYK | cmyk(32.6%, 63.1%, 0%, 26.7%) |
| CIE-LAB | lab(41.66, 47.38, -53.16) |
| CIE-LCH | lch(41.66, 71.21, 311.71°) |
| OKLab | oklab(51.75% 0.0973 -0.1508) |
| OKLCH | oklch(51.75% 0.179 302.8) |
| XYZ | xyz(19.6999, 12.2797, 48.3364) |
| Luminance | 0.1228 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.53
Darkorchid
#9932CC
ΔE00 5.43
Bluey Purple
#6241C7
ΔE00 5.75
Purply
#983FB2
ΔE00 5.84
Blueviolet
#8A2BE2
ΔE00 6.33
Bluish Purple
#703BE7
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E45BB #82BB45
analogous
#4547BB #7E45BB #B945BB
triadic
#7E45BB #BB7E45 #45BB7E
tetradic
#7E45BB #BB4547 #82BB45 #45BBB9
square
#7E45BB #BB4547 #82BB45 #45BBB9
split-complementary
#7E45BB #BBB945 #47BB45
monochromatic
#422462 #60348F #7E45BB #9D72CB #BC9FDC
Accessibility & contrast
On white
6.08
#7E45BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#7E45BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E45BB
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E45BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E45BB | 1.00 | 6.08 | 3.46 | 6.08 |
| #FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#2062B8
Tritanopia (blue-blind)
#725E7A
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7e45bb; /* rgb */ color: rgb(126, 69, 187); /* oklch */ color: oklch(51.8% 0.179 302.8);
Tailwind
colors: {
custom: {
50: '#a87cd0',
500: '#7e45bb',
950: '#000000',
},
}SCSS
$custom: #7e45bb; $custom-light: #a87cd0; $custom-dark: #000000;
JSON
{
"hex": "#7e45bb",
"rgb": {
"r": 126,
"g": 69,
"b": 187
},
"hsl": {
"h": 268.983,
"s": 46.457,
"l": 50.196
},
"oklch": {
"l": 0.51752,
"c": 0.17944,
"h": 302.8
},
"luminance": 0.1228
}Semantic roles & 50–950 ramp
primary
#7E45BB
secondary
#AFC894
accent
#D65296
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82