Skip to content

#4900cc

a dark, electric violet · warm · closest name: blue

RGB
73, 0, 204
HSL
262°, 100%, 40%
CMYK
64, 100, 0, 20
Luminance
0.0578

Every format

HEX#4900cc
RGBrgb(73, 0, 204)
HSLhsl(262, 100%, 40%)
CMYKcmyk(64%, 100%, 0%, 20%)
LABlab(28.8 68.5 -84.4)
LCHlch(28.8 108.7 309.1)
OKLCHoklch(0.419 0.249 282.6)

Copy-ready code

/* CSS */
color: #4900cc;
background-color: #4900cc;
/* Tailwind (arbitrary) */
class="text-[#4900cc] bg-[#4900cc]"
/* SCSS */
$brand: #4900cc;
/* SwiftUI */
Color(red: 0.286, green: 0.000, blue: 0.800)
/* Android */
Color.parseColor("#4900cc")

Accessibility — WCAG contrast

Aa
#4900cc on white: 9.74:1
AA ✓ pass · AA-large · AAA
Aa
#4900cc on black: 2.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red28.6%
Green0.0%
Blue80.0%

CMYK percentages

Cyan64.2%
Magenta100.0%
Yellow0.0%
Key (black)20.0%

Color previews

#4900cc text on a black background

contrast 2.16:1

Card sample

#4900cc text on a white background

contrast 9.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4900cc;
Background color
Panel with #4900cc background
background-color: #4900cc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4900cc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(73, 0, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(73, 0, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4900cc;
background: linear-gradient(135deg, #4900cc, #CC00C7);

Monochromatic scale

Palettes built from #4900cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4900cc in the Color Lab