Skip to content

#fc40eb

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

RGB
252, 64, 235
HSL
305°, 97%, 62%
CMYK
0, 75, 7, 1
Luminance
0.3036

Every format

HEX#fc40eb
RGBrgb(252, 64, 235)
HSLhsl(305, 97%, 62%)
CMYKcmyk(0%, 75%, 7%, 1%)
LABlab(62.0 85.5 -47.1)
LCHlch(62.0 97.6 331.1)
OKLCHoklch(0.709 0.278 332.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fc40eb on white: 2.97:1
AA ✗ fail · AA-large · AAA
Aa
#fc40eb on black: 7.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green25.1%
Blue92.2%

CMYK percentages

Cyan0.0%
Magenta74.6%
Yellow6.7%
Key (black)1.2%

Color previews

#fc40eb text on a black background

contrast 7.07:1

Card sample

#fc40eb text on a white background

contrast 2.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(252, 64, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 64, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fc40eb;
background: linear-gradient(135deg, #fc40eb, #FC406E);

Monochromatic scale

Palettes built from #fc40eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fc40eb in the Color Lab