Skip to content

#4f2cab

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

RGB
79, 44, 171
HSL
257°, 59%, 42%
CMYK
54, 74, 0, 33
Luminance
0.0640

Every format

HEX#4f2cab
RGBrgb(79, 44, 171)
HSLhsl(257, 59%, 42%)
CMYKcmyk(54%, 74%, 0%, 33%)
LABlab(30.4 47.1 -62.2)
LCHlch(30.4 78.0 307.1)
OKLCHoklch(0.421 0.188 288.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2cab on white: 9.21:1
AA ✓ pass · AA-large · AAA
Aa
#4f2cab on black: 2.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green17.3%
Blue67.1%

CMYK percentages

Cyan53.8%
Magenta74.3%
Yellow0.0%
Key (black)32.9%

Color previews

#4f2cab text on a black background

contrast 2.28:1

Card sample

#4f2cab text on a white background

contrast 9.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2cab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2cab in the Color Lab