#7E46BF#7E46BF
#7E46BF is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.183 H 301.6°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #7E46BF |
|---|---|
| RGB | rgb(126, 70, 191) |
| HSL | hsl(268, 49%, 51%) |
| HSV | hsv(268, 63%, 75%) |
| CMYK | cmyk(34%, 63.4%, 0%, 25.1%) |
| CIE-LAB | lab(42.12, 47.85, -54.75) |
| CIE-LCH | lch(42.12, 72.71, 311.15°) |
| OKLab | oklab(52.17% 0.0958 -0.1555) |
| OKLCH | oklch(52.17% 0.183 301.6) |
| XYZ | xyz(20.1961, 12.5775, 50.6438) |
| Luminance | 0.1258 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.80
Darkorchid
#9932CC
ΔE00 5.41
Bluey Purple
#6241C7
ΔE00 5.50
Blueviolet
#8A2BE2
ΔE00 6.00
Purply
#983FB2
ΔE00 6.19
Bluish Purple
#703BE7
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E46BF #87BF46
analogous
#464ABF #7E46BF #BA46BF
triadic
#7E46BF #BF7E46 #46BF7E
tetradic
#7E46BF #BF464A #87BF46 #46BFBA
square
#7E46BF #BF464A #87BF46 #46BFBA
split-complementary
#7E46BF #BFBA46 #4ABF46
monochromatic
#432467 #603394 #7E46BF #9E73CF #BDA1DE
Accessibility & contrast
On white
5.97
#7E46BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#7E46BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E46BF
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E46BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E46BF | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#1A63BC
Tritanopia (blue-blind)
#71607C
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7e46bf; /* rgb */ color: rgb(126, 70, 191); /* oklch */ color: oklch(52.2% 0.183 301.6);
Tailwind
colors: {
custom: {
50: '#a87dd3',
500: '#7e46bf',
950: '#000000',
},
}SCSS
$custom: #7e46bf; $custom-light: #a87dd3; $custom-dark: #000000;
JSON
{
"hex": "#7e46bf",
"rgb": {
"r": 126,
"g": 70,
"b": 191
},
"hsl": {
"h": 267.769,
"s": 48.594,
"l": 51.176
},
"oklch": {
"l": 0.52172,
"c": 0.18263,
"h": 301.6
},
"luminance": 0.12578
}Semantic roles & 50–950 ramp
primary
#7E46BF
secondary
#B2CB96
accent
#D85099
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83