Skip to content

#4f2ffc

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

RGB
79, 47, 252
HSL
249°, 97%, 59%
CMYK
69, 81, 0, 1
Luminance
0.1072

Every format

HEX#4f2ffc
RGBrgb(79, 47, 252)
HSLhsl(249, 97%, 59%)
CMYKcmyk(69%, 81%, 0%, 1%)
LABlab(39.1 68.6 -94.7)
LCHlch(39.1 117.0 305.9)
OKLCHoklch(0.506 0.276 277.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2ffc on white: 6.68:1
AA ✓ pass · AA-large · AAA
Aa
#4f2ffc on black: 3.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green18.4%
Blue98.8%

CMYK percentages

Cyan68.7%
Magenta81.3%
Yellow0.0%
Key (black)1.2%

Color previews

#4f2ffc text on a black background

contrast 3.14:1

Card sample

#4f2ffc text on a white background

contrast 6.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2ffc in the Color Lab