Skip to content

#f40fac

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

RGB
244, 15, 172
HSL
319°, 91%, 51%
CMYK
0, 94, 30, 4
Luminance
0.2255

Every format

HEX#f40fac
RGBrgb(244, 15, 172)
HSLhsl(319, 91%, 51%)
CMYKcmyk(0%, 94%, 30%, 4%)
LABlab(54.6 85.1 -22.7)
LCHlch(54.6 88.1 345.1)
OKLCHoklch(0.644 0.267 347.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f40fac on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#f40fac on black: 5.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red95.7%
Green5.9%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta93.9%
Yellow29.5%
Key (black)4.3%

Color previews

#f40fac text on a black background

contrast 5.51:1

Card sample

#f40fac text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f40fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f40fac in the Color Lab