Skip to content

#d02f78

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

RGB
208, 47, 120
HSL
333°, 63%, 50%
CMYK
0, 77, 42, 18
Luminance
0.1680

Every format

HEX#d02f78
RGBrgb(208, 47, 120)
HSLhsl(333, 63%, 50%)
CMYKcmyk(0%, 77%, 42%, 18%)
LABlab(48.0 66.1 -2.2)
LCHlch(48.0 66.2 358.1)
OKLCHoklch(0.579 0.203 358.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02f78 on white: 4.82:1
AA ✓ pass · AA-large · AAA
Aa
#d02f78 on black: 4.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green18.4%
Blue47.1%

CMYK percentages

Cyan0.0%
Magenta77.4%
Yellow42.3%
Key (black)18.4%

Color previews

#d02f78 text on a black background

contrast 4.36:1

Card sample

#d02f78 text on a white background

contrast 4.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(208, 47, 120, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(208, 47, 120, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d02f78;
background: linear-gradient(135deg, #d02f78, #D0512F);

Monochromatic scale

Palettes built from #d02f78

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02f78 in the Color Lab