Maroon Colors  ·  Color Library

Palettes / Colors / #D02FA2

#D02FA2 — Pink

#D02FA2 is a pink color we call Pink, closest to the named color MediumVioletRed (#C71585). It belongs to the pink family.

Color name

Closest CSS keyword: mediumvioletred (#C71585) — not an exact match. CSS mediumvioletred gives you #C71585, a different color; use #D02FA2 when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#D02FA2 is a warm-leaning pink color associated with playfulness, romance and softness. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #2FD05D; it also sits naturally between #AD2FD0 and #D02F52. In the palettes below you can see it working alongside real color combinations from our collection.

#D02FA2 · RGB 208, 47, 162

Download PNG swatch SVG

Color values

HEX#D02FA2
RGB208, 47, 162
HSL317°, 63%, 50%
HSV317°, 77%, 82%
CMYK0%, 77%, 22%, 18%
XYZ33.55, 18.05, 35.90
Yxy18.05, 0.3834, 0.2063
CIE-Lab49.56, 70.78, -25.13
Hunter Lab42.49, 69.97, -23.54

RGB & CMYK percentages

Red 82% · Green 18% · Blue 64%

Cyan 0% · Magenta 77% · Yellow 22% · Key 18%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #D02FA2 on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #D02FA2 on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #D02FA2

.text { color: #D02FA2; }
.background { background-color: #D02FA2; }
.border { border: 3px solid #D02FA2; }
.text-rgb { color: rgb(208, 47, 162); }
.text-hsl { color: hsl(317, 63%, 50%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #D02FA2; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(208, 47, 162, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #D02FA2; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(208, 47, 162, 0.8); }

HTML: <p style="color:#D02FA2">Text here</p> · <div style="background-color:#D02FA2">Div content here</div>

Shades of #D02FA2

#BB2A92#AA2785#962275#851E68#701958#5B1547#4B113A#360C2A#25081D#11040D

Tints of #D02FA2

#D544AC#D855B3#DD69BC#E17AC4#E68FCD#EAA4D6#EEB4DE#F3C9E7#F7DAEE#FBEEF8

Tones of #D02FA2

#C43B9D#B94698#AD5293#A25D8E#966989#8B7484

Color harmonies

Complementary — #2FD05D:

Analogous:

Triadic:

Contrast & accessibility

Against white text4.56:1 AA
Against black text4.61:1 AA

Best text color on #D02FA2: #000000.

Semi-transparent (opacity) text on #D02FA2

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #D02FA2: ·

How #D02FA2 looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #8A8986Deuteranopia · #94A07FTritanopia · #C8706B

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Tailwind pink 500 · #EC4899Tailwind pink 600 · #DB2777Tailwind fuchsia 600 · #C026D3

Palettes with a similar color

These palettes use a close neighbour of #D02FA2 rather than the exact color:

Electric Ruby Meadow
#A025AA · #CF2D9F · #DD658D · #EDB1AE
Tranquil Petal
#CF2BA5 · #DA606F · #8D5822 · #BED32C
Radiant Dusk
#E28DCA · #D133A5 · #8D1B6D · #591747
Electric Breeze
#73128D · #D127A3 · #7C132E · #DA4318
Crystal Ruby Terrace
#1A833B · #7CE589 · #D0299B · #EBB6E2
Amber Breeze
#86B224 · #50B0DB · #CD2A9A · #E5ECC4

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#CF2D9F#CF2BA5#D133A5#D127A3#D0299B#CD2A9A#C532A3#CD3B9F#D424A7#D63297#C5339B#DD33A6

Browse neighbouring colors

← #D02FA1  ·  #D02FA3 →

Frequently asked questions

What color is #D02FA2?

#D02FA2 is Pink, a pink color (RGB 208, 47, 162). Its closest standard named color is MediumVioletRed.

What is the RGB and HSL of #D02FA2?

#D02FA2 is RGB 208, 47, 162 — HSL 317°, 63%, 50% — CMYK 0%, 77%, 22%, 18%.

What colors go with #D02FA2?

Its complement is #2FD05D; analogous partners are #AD2FD0 and #D02F52. It also appears in 6+ palettes in our collection.

Can I use #D02FA2 for text?

Black text on #D02FA2 has a contrast ratio of 4.61:1 (passes WCAG AA); white text gives 4.56:1.