Skip to content

#4f2eaf

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

RGB
79, 46, 175
HSL
255°, 58%, 43%
CMYK
55, 74, 0, 31
Luminance
0.0671

Every format

HEX#4f2eaf
RGBrgb(79, 46, 175)
HSLhsl(255, 58%, 43%)
CMYKcmyk(55%, 74%, 0%, 31%)
LABlab(31.1 47.2 -63.4)
LCHlch(31.1 79.0 306.7)
OKLCHoklch(0.427 0.191 287.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2eaf on white: 8.97:1
AA ✓ pass · AA-large · AAA
Aa
#4f2eaf on black: 2.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green18.0%
Blue68.6%

CMYK percentages

Cyan54.9%
Magenta73.7%
Yellow0.0%
Key (black)31.4%

Color previews

#4f2eaf text on a black background

contrast 2.34:1

Card sample

#4f2eaf text on a white background

contrast 8.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2eaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2eaf in the Color Lab