Skip to content

#542fdf

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

RGB
84, 47, 223
HSL
253°, 73%, 53%
CMYK
62, 79, 0, 13
Luminance
0.0925

Every format

HEX#542fdf
RGBrgb(84, 47, 223)
HSLhsl(253, 73%, 53%)
CMYKcmyk(62%, 79%, 0%, 13%)
LABlab(36.5 61.0 -82.7)
LCHlch(36.5 102.8 306.4)
OKLCHoklch(0.480 0.244 281.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#542fdf on white: 7.37:1
AA ✓ pass · AA-large · AAA
Aa
#542fdf on black: 2.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red32.9%
Green18.4%
Blue87.5%

CMYK percentages

Cyan62.3%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#542fdf text on a black background

contrast 2.85:1

Card sample

#542fdf text on a white background

contrast 7.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #542fdf;
Background color
Panel with #542fdf background
background-color: #542fdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #542fdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(84, 47, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(84, 47, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #542fdf;
background: linear-gradient(135deg, #542fdf, #C92FDF);

Monochromatic scale

Palettes built from #542fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #542fdf in the Color Lab