Skip to content

#e40fdf

a balanced, electric magenta / pink · warm · closest name: magenta

RGB
228, 15, 223
HSL
301°, 88%, 48%
CMYK
0, 93, 2, 11
Luminance
0.2216

Every format

HEX#e40fdf
RGBrgb(228, 15, 223)
HSLhsl(301, 88%, 48%)
CMYKcmyk(0%, 93%, 2%, 11%)
LABlab(54.2 88.5 -52.9)
LCHlch(54.2 103.1 329.1)
OKLCHoklch(0.644 0.290 329.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e40fdf on white: 3.87:1
AA ✗ fail · AA-large · AAA
Aa
#e40fdf on black: 5.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red89.4%
Green5.9%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta93.4%
Yellow2.2%
Key (black)10.6%

Color previews

#e40fdf text on a black background

contrast 5.43:1

Card sample

#e40fdf text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(228, 15, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(228, 15, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e40fdf;
background: linear-gradient(135deg, #e40fdf, #E40F51);

Monochromatic scale

Palettes built from #e40fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e40fdf in the Color Lab