Skip to content

#4c2abf

a balanced, vivid blue · warm · closest name: navy

RGB
76, 42, 191
HSL
254°, 64%, 46%
CMYK
60, 78, 0, 25
Luminance
0.0695

Every format

HEX#4c2abf
RGBrgb(76, 42, 191)
HSLhsl(254, 64%, 46%)
CMYKcmyk(60%, 78%, 0%, 25%)
LABlab(31.7 53.4 -72.0)
LCHlch(31.7 89.6 306.6)
OKLCHoklch(0.435 0.213 283.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4c2abf on white: 8.78:1
AA ✓ pass · AA-large · AAA
Aa
#4c2abf on black: 2.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red29.8%
Green16.5%
Blue74.9%

CMYK percentages

Cyan60.2%
Magenta78.0%
Yellow0.0%
Key (black)25.1%

Color previews

#4c2abf text on a black background

contrast 2.39:1

Card sample

#4c2abf text on a white background

contrast 8.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(76, 42, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(76, 42, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4c2abf;
background: linear-gradient(135deg, #4c2abf, #AF2ABF);

Monochromatic scale

Palettes built from #4c2abf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4c2abf in the Color Lab