Skip to content

#5e2dfd

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

RGB
94, 45, 253
HSL
254°, 98%, 58%
CMYK
63, 82, 0, 1
Luminance
0.1135

Every format

HEX#5e2dfd
RGBrgb(94, 45, 253)
HSLhsl(254, 98%, 58%)
CMYKcmyk(63%, 82%, 0%, 1%)
LABlab(40.2 70.8 -93.5)
LCHlch(40.2 117.3 307.1)
OKLCHoklch(0.516 0.276 281.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5e2dfd on white: 6.42:1
AA ✓ pass · AA-large · AAA
Aa
#5e2dfd on black: 3.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red36.9%
Green17.6%
Blue99.2%

CMYK percentages

Cyan62.8%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#5e2dfd text on a black background

contrast 3.27:1

Card sample

#5e2dfd text on a white background

contrast 6.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5e2dfd;
Background color
Panel with #5e2dfd background
background-color: #5e2dfd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5e2dfd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(94, 45, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(94, 45, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5e2dfd;
background: linear-gradient(135deg, #5e2dfd, #E92DFD);

Monochromatic scale

Palettes built from #5e2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5e2dfd in the Color Lab