Skip to content

#4d02fd

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

RGB
77, 2, 253
HSL
258°, 98%, 50%
CMYK
70, 99, 0, 1
Luminance
0.0871

Every format

HEX#4d02fd
RGBrgb(77, 2, 253)
HSLhsl(258, 98%, 50%)
CMYKcmyk(70%, 99%, 0%, 1%)
LABlab(35.4 79.7 -101.4)
LCHlch(35.4 129.0 308.2)
OKLCHoklch(0.481 0.295 277.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4d02fd on white: 7.66:1
AA ✓ pass · AA-large · AAA
Aa
#4d02fd on black: 2.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.2%
Green0.8%
Blue99.2%

CMYK percentages

Cyan69.6%
Magenta99.2%
Yellow0.0%
Key (black)0.8%

Color previews

#4d02fd text on a black background

contrast 2.74:1

Card sample

#4d02fd text on a white background

contrast 7.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(77, 2, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(77, 2, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4d02fd;
background: linear-gradient(135deg, #4d02fd, #F402FD);

Monochromatic scale

Palettes built from #4d02fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4d02fd in the Color Lab