Skip to content

#ff40ba

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

RGB
255, 64, 186
HSL
322°, 100%, 63%
CMYK
0, 75, 27, 0
Luminance
0.2847

Every format

HEX#ff40ba
RGBrgb(255, 64, 186)
HSLhsl(322, 100%, 63%)
CMYKcmyk(0%, 75%, 27%, 0%)
LABlab(60.3 79.8 -21.9)
LCHlch(60.3 82.8 344.7)
OKLCHoklch(0.691 0.250 346.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff40ba on white: 3.14:1
AA ✗ fail · AA-large · AAA
Aa
#ff40ba on black: 6.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green25.1%
Blue72.9%

CMYK percentages

Cyan0.0%
Magenta74.9%
Yellow27.1%
Key (black)0.0%

Color previews

#ff40ba text on a black background

contrast 6.69:1

Card sample

#ff40ba text on a white background

contrast 3.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff40ba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff40ba in the Color Lab