Skip to content

#ff40cd

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

RGB
255, 64, 205
HSL
316°, 100%, 63%
CMYK
0, 75, 20, 0
Luminance
0.2933

Every format

HEX#ff40cd
RGBrgb(255, 64, 205)
HSLhsl(316, 100%, 63%)
CMYKcmyk(0%, 75%, 20%, 0%)
LABlab(61.1 82.1 -31.6)
LCHlch(61.1 88.0 339.0)
OKLCHoklch(0.699 0.260 340.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff40cd on white: 3.06:1
AA ✗ fail · AA-large · AAA
Aa
#ff40cd on black: 6.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green25.1%
Blue80.4%

CMYK percentages

Cyan0.0%
Magenta74.9%
Yellow19.6%
Key (black)0.0%

Color previews

#ff40cd text on a black background

contrast 6.87:1

Card sample

#ff40cd text on a white background

contrast 3.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff40cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff40cd in the Color Lab