Skip to content

#4f2bab

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

RGB
79, 43, 171
HSL
257°, 60%, 42%
CMYK
54, 75, 0, 33
Luminance
0.0633

Every format

HEX#4f2bab
RGBrgb(79, 43, 171)
HSLhsl(257, 60%, 42%)
CMYKcmyk(54%, 75%, 0%, 33%)
LABlab(30.2 47.6 -62.5)
LCHlch(30.2 78.5 307.3)
OKLCHoklch(0.420 0.189 288.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2bab on white: 9.27:1
AA ✓ pass · AA-large · AAA
Aa
#4f2bab on black: 2.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green16.9%
Blue67.1%

CMYK percentages

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

Color previews

#4f2bab text on a black background

contrast 2.27:1

Card sample

#4f2bab text on a white background

contrast 9.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2bab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2bab in the Color Lab