Skip to content

#4f2dad

a dark, vivid violet · warm · closest name: indigo

RGB
79, 45, 173
HSL
256°, 59%, 43%
CMYK
54, 74, 0, 32
Luminance
0.0656

Every format

HEX#4f2dad
RGBrgb(79, 45, 173)
HSLhsl(256, 59%, 43%)
CMYKcmyk(54%, 74%, 0%, 32%)
LABlab(30.8 47.1 -62.8)
LCHlch(30.8 78.5 306.9)
OKLCHoklch(0.424 0.189 287.5)

Copy-ready code

/* CSS */
color: #4f2dad;
background-color: #4f2dad;
/* Tailwind (arbitrary) */
class="text-[#4f2dad] bg-[#4f2dad]"
/* SCSS */
$brand: #4f2dad;
/* SwiftUI */
Color(red: 0.310, green: 0.176, blue: 0.678)
/* Android */
Color.parseColor("#4f2dad")

Accessibility — WCAG contrast

Aa
#4f2dad on white: 9.09:1
AA ✓ pass · AA-large · AAA
Aa
#4f2dad on black: 2.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green17.6%
Blue67.8%

CMYK percentages

Cyan54.3%
Magenta74.0%
Yellow0.0%
Key (black)32.2%

Color previews

#4f2dad text on a black background

contrast 2.31:1

Card sample

#4f2dad text on a white background

contrast 9.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4f2dad;
Background color
Panel with #4f2dad background
background-color: #4f2dad;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4f2dad;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(79, 45, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 45, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f2dad;
background: linear-gradient(135deg, #4f2dad, #A42DAD);

Monochromatic scale

Palettes built from #4f2dad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2dad in the Color Lab