Skip to content

#4c2eee

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

RGB
76, 46, 238
HSL
249°, 85%, 56%
CMYK
68, 81, 0, 7
Luminance
0.0966

Every format

HEX#4c2eee
RGBrgb(76, 46, 238)
HSLhsl(249, 85%, 56%)
CMYKcmyk(68%, 81%, 0%, 7%)
LABlab(37.2 64.9 -90.0)
LCHlch(37.2 110.9 305.8)
OKLCHoklch(0.488 0.262 277.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4c2eee on white: 7.16:1
AA ✓ pass · AA-large · AAA
Aa
#4c2eee on black: 2.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red29.8%
Green18.0%
Blue93.3%

CMYK percentages

Cyan68.1%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#4c2eee text on a black background

contrast 2.93:1

Card sample

#4c2eee text on a white background

contrast 7.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4c2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4c2eee in the Color Lab