Skip to content

#4f2dac

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

RGB
79, 45, 172
HSL
256°, 59%, 43%
CMYK
54, 74, 0, 33
Luminance
0.0652

Every format

HEX#4f2dac
RGBrgb(79, 45, 172)
HSLhsl(256, 59%, 43%)
CMYKcmyk(54%, 74%, 0%, 33%)
LABlab(30.7 46.9 -62.4)
LCHlch(30.7 78.0 306.9)
OKLCHoklch(0.423 0.188 287.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2dac on white: 9.12:1
AA ✓ pass · AA-large · AAA
Aa
#4f2dac on black: 2.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green17.6%
Blue67.5%

CMYK percentages

Cyan54.1%
Magenta73.8%
Yellow0.0%
Key (black)32.5%

Color previews

#4f2dac text on a black background

contrast 2.30:1

Card sample

#4f2dac text on a white background

contrast 9.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2dac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2dac in the Color Lab