Skip to content

#d02fdf

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

RGB
208, 47, 223
HSL
295°, 73%, 53%
CMYK
7, 79, 0, 13
Luminance
0.2077

Every format

HEX#d02fdf
RGBrgb(208, 47, 223)
HSLhsl(295, 73%, 53%)
CMYKcmyk(7%, 79%, 0%, 13%)
LABlab(52.7 79.7 -55.5)
LCHlch(52.7 97.1 325.1)
OKLCHoklch(0.627 0.265 324.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02fdf on white: 4.07:1
AA ✗ fail · AA-large · AAA
Aa
#d02fdf on black: 5.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green18.4%
Blue87.5%

CMYK percentages

Cyan6.7%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#d02fdf text on a black background

contrast 5.15:1

Card sample

#d02fdf text on a white background

contrast 4.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02fdf in the Color Lab