Skip to content

#5f2cfd

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

RGB
95, 44, 253
HSL
255°, 98%, 58%
CMYK
63, 83, 0, 1
Luminance
0.1133

Every format

HEX#5f2cfd
RGBrgb(95, 44, 253)
HSLhsl(255, 98%, 58%)
CMYKcmyk(63%, 83%, 0%, 1%)
LABlab(40.1 71.2 -93.6)
LCHlch(40.1 117.6 307.3)
OKLCHoklch(0.516 0.276 282.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red37.3%
Green17.3%
Blue99.2%

CMYK percentages

Cyan62.5%
Magenta82.6%
Yellow0.0%
Key (black)0.8%

Color previews

#5f2cfd text on a black background

contrast 3.27:1

Card sample

#5f2cfd text on a white background

contrast 6.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f2cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5f2cfd in the Color Lab