Skip to content

#4c2fdf

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

RGB
76, 47, 223
HSL
250°, 73%, 53%
CMYK
66, 79, 0, 13
Luminance
0.0890

Every format

HEX#4c2fdf
RGBrgb(76, 47, 223)
HSLhsl(250, 73%, 53%)
CMYKcmyk(66%, 79%, 0%, 13%)
LABlab(35.8 60.2 -83.8)
LCHlch(35.8 103.2 305.7)
OKLCHoklch(0.473 0.245 279.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4c2fdf on white: 7.56:1
AA ✓ pass · AA-large · AAA
Aa
#4c2fdf on black: 2.78:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red29.8%
Green18.4%
Blue87.5%

CMYK percentages

Cyan65.9%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#4c2fdf text on a black background

contrast 2.78:1

Card sample

#4c2fdf text on a white background

contrast 7.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4c2fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4c2fdf in the Color Lab