Skip to content

#7e3f9e

a dark, soft violet · warm · closest name: purple

RGB
126, 63, 158
HSL
280°, 43%, 43%
CMYK
20, 60, 0, 38
Luminance
0.1046

Every format

HEX#7e3f9e
RGBrgb(126, 63, 158)
HSLhsl(280, 43%, 43%)
CMYKcmyk(20%, 60%, 0%, 38%)
LABlab(38.7 43.6 -40.8)
LCHlch(38.7 59.7 316.9)
OKLCHoklch(0.490 0.156 312.7)

Copy-ready code

/* CSS */
color: #7e3f9e;
background-color: #7e3f9e;
/* Tailwind (arbitrary) */
class="text-[#7e3f9e] bg-[#7e3f9e]"
/* SCSS */
$brand: #7e3f9e;
/* SwiftUI */
Color(red: 0.494, green: 0.247, blue: 0.620)
/* Android */
Color.parseColor("#7e3f9e")

Accessibility — WCAG contrast

Aa
#7e3f9e on white: 6.79:1
AA ✓ pass · AA-large · AAA
Aa
#7e3f9e on black: 3.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red49.4%
Green24.7%
Blue62.0%

CMYK percentages

Cyan20.3%
Magenta60.1%
Yellow0.0%
Key (black)38.0%

Color previews

#7e3f9e text on a black background

contrast 3.09:1

Card sample

#7e3f9e text on a white background

contrast 6.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7e3f9e;
Background color
Panel with #7e3f9e background
background-color: #7e3f9e;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7e3f9e;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(126, 63, 158, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(126, 63, 158, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7e3f9e;
background: linear-gradient(135deg, #7e3f9e, #9E3F7F);

Monochromatic scale

Palettes built from #7e3f9e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7e3f9e in the Color Lab