#7E34B4#7E34B4
#7E34B4 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.1% C 0.194 H 307.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).
Color values
| HEX | #7E34B4 |
|---|---|
| RGB | rgb(126, 52, 180) |
| HSL | hsl(275, 55%, 45%) |
| HSV | hsv(275, 71%, 71%) |
| CMYK | cmyk(30%, 71.1%, 0%, 29.4%) |
| CIE-LAB | lab(38.18, 53.98, -54.66) |
| CIE-LCH | lch(38.18, 76.82, 314.64°) |
| OKLab | oklab(49.1% 0.1169 -0.1551) |
| OKLCH | oklch(49.1% 0.194 307) |
| XYZ | xyz(18.0686, 10.1871, 44.1856) |
| Luminance | 0.1019 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 5.31
Darkorchid
#9932CC
ΔE00 5.52
Rebeccapurple
#663399
ΔE00 5.52
Darkviolet
#9400D3
ΔE00 5.66
Purply
#983FB2
ΔE00 6.19
Blueviolet
#8A2BE2
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E34B4 #6AB434
analogous
#3E34B4 #7E34B4 #B434AA
triadic
#7E34B4 #B47E34 #34B47E
tetradic
#7E34B4 #B43E34 #6AB434 #34AAB4
square
#7E34B4 #B43E34 #6AB434 #34AAB4
split-complementary
#7E34B4 #AAB434 #34B43E
monochromatic
#3C1955 #5D2685 #7E34B4 #9C57CE #B886DC
Accessibility & contrast
On white
6.91
#7E34B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.04
#7E34B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E34B4
6.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E34B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E34B4 | 1.00 | 6.91 | 3.04 | 6.91 |
| #FFFFFF | 6.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#075AB1
Tritanopia (blue-blind)
#755170
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #7e34b4; /* rgb */ color: rgb(126, 52, 180); /* oklch */ color: oklch(49.1% 0.194 307.0);
Tailwind
colors: {
custom: {
50: '#a872cb',
500: '#7e34b4',
950: '#000000',
},
}SCSS
$custom: #7e34b4; $custom-light: #a872cb; $custom-dark: #000000;
JSON
{
"hex": "#7e34b4",
"rgb": {
"r": 126,
"g": 52,
"b": 180
},
"hsl": {
"h": 274.688,
"s": 55.172,
"l": 45.49
},
"oklch": {
"l": 0.49098,
"c": 0.19425,
"h": 307
},
"luminance": 0.10187
}Semantic roles & 50–950 ramp
primary
#7E34B4
secondary
#9CC67E
accent
#DF4988
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82