Skip to content

#df227f

a balanced, vivid magenta / pink · warm · closest name: crimson

RGB
223, 34, 127
HSL
331°, 75%, 50%
CMYK
0, 85, 43, 13
Luminance
0.1836

Every format

HEX#df227f
RGBrgb(223, 34, 127)
HSLhsl(331, 75%, 50%)
CMYKcmyk(0%, 85%, 43%, 13%)
LABlab(49.9 73.6 -3.3)
LCHlch(49.9 73.7 357.4)
OKLCHoklch(0.598 0.227 358.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df227f on white: 4.49:1
AA ✗ fail · AA-large · AAA
Aa
#df227f on black: 4.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green13.3%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta84.8%
Yellow43.0%
Key (black)12.5%

Color previews

#df227f text on a black background

contrast 4.67:1

Card sample

#df227f text on a white background

contrast 4.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df227f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df227f in the Color Lab