#7E4DB3#7E4DB3
#7E4DB3 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.4% C 0.158 H 303.6°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #7E4DB3 |
|---|---|
| RGB | rgb(126, 77, 179) |
| HSL | hsl(269, 40%, 50%) |
| HSV | hsv(269, 57%, 70%) |
| CMYK | cmyk(29.6%, 57%, 0%, 29.8%) |
| CIE-LAB | lab(42.76, 41.08, -46.69) |
| CIE-LCH | lch(42.76, 62.19, 311.34°) |
| OKLab | oklab(52.39% 0.0875 -0.1318) |
| OKLCH | oklch(52.39% 0.158 303.6) |
| XYZ | xyz(19.3929, 12.9981, 44.1263) |
| Luminance | 0.1300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.32
Deep Lavender
#8D5EB7
ΔE00 5.86
Purply
#983FB2
ΔE00 5.90
Darkorchid
#9932CC
ΔE00 6.95
Bluey Purple
#6241C7
ΔE00 7.26
Light Indigo
#6D5ACF
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E4DB3 #82B34D
analogous
#4D4FB3 #7E4DB3 #B14DB3
triadic
#7E4DB3 #B37E4D #4DB37E
tetradic
#7E4DB3 #B34D4F #82B34D #4DB3B1
square
#7E4DB3 #B34D4F #82B34D #4DB3B1
split-complementary
#7E4DB3 #B3B14D #4FB34D
monochromatic
#42285E #603A89 #7E4DB3 #9D78C5 #BCA3D8
Accessibility & contrast
On white
5.83
#7E4DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#7E4DB3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E4DB3
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E4DB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E4DB3 | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2464B6
Deuteranopia (green-blind)
#3765B1
Tritanopia (blue-blind)
#746178
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #7e4db3; /* rgb */ color: rgb(126, 77, 179); /* oklch */ color: oklch(52.4% 0.158 303.6);
Tailwind
colors: {
custom: {
50: '#a781ca',
500: '#7e4db3',
950: '#000000',
},
}SCSS
$custom: #7e4db3; $custom-light: #a781ca; $custom-dark: #000000;
JSON
{
"hex": "#7e4db3",
"rgb": {
"r": 126,
"g": 77,
"b": 179
},
"hsl": {
"h": 268.824,
"s": 40.157,
"l": 50.196
},
"oklch": {
"l": 0.52392,
"c": 0.15821,
"h": 303.6
},
"luminance": 0.12998
}Semantic roles & 50–950 ramp
primary
#7E4DB3
secondary
#AFC597
accent
#D05896
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82