Skip to content

#4e2fff

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

RGB
78, 47, 255
HSL
249°, 100%, 59%
CMYK
69, 82, 0, 0
Luminance
0.1087

Every format

HEX#4e2fff
RGBrgb(78, 47, 255)
HSLhsl(249, 100%, 59%)
CMYKcmyk(69%, 82%, 0%, 0%)
LABlab(39.4 69.3 -96.0)
LCHlch(39.4 118.4 305.8)
OKLCHoklch(0.508 0.279 276.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4e2fff on white: 6.62:1
AA ✓ pass · AA-large · AAA
Aa
#4e2fff on black: 3.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.6%
Green18.4%
Blue100.0%

CMYK percentages

Cyan69.4%
Magenta81.6%
Yellow0.0%
Key (black)0.0%

Color previews

#4e2fff text on a black background

contrast 3.17:1

Card sample

#4e2fff text on a white background

contrast 6.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4e2fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4e2fff in the Color Lab