Maroon Colors  ·  Color Library

Palettes / Colors / #D402CD

#D402CD — Vivid Pink

#D402CD is a pink color we call Vivid Pink, closest to the named color DarkViolet (#9400D3). It belongs to the pink family.

Color name

Closest CSS keyword: darkviolet (#9400D3) — not an exact match. CSS darkviolet gives you #9400D3, a different color; use #D402CD 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.

#D402CD 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 #02D409; it also sits naturally between #7202D4 and #D40264. In the palettes below you can see it working alongside real color combinations from our collection.

#D402CD · RGB 212, 2, 205

Download PNG swatch SVG

Color values

HEX#D402CD
RGB212, 2, 205
HSL302°, 98%, 42%
HSV302°, 99%, 83%
CMYK0%, 99%, 3%, 17%
XYZ38.19, 18.45, 59.31
Yxy18.45, 0.3294, 0.1591
CIE-Lab50.04, 84.33, -49.48
Hunter Lab42.95, 87.22, -56.22

RGB & CMYK percentages

Red 83% · Green 1% · Blue 80%

Cyan 0% · Magenta 99% · Yellow 3% · Key 17%

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

Previews

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

CSS code for #D402CD

.text { color: #D402CD; }
.background { background-color: #D402CD; }
.border { border: 3px solid #D402CD; }
.text-rgb { color: rgb(212, 2, 205); }
.text-hsl { color: hsl(302, 98%, 42%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #D402CD; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(212, 2, 205, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #D402CD; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(212, 2, 205, 0.8); }

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

Shades of #D402CD

#C002BA#AC02A6#9D0297#880184#740170#60015D#4C0149#3D013B#280027#140014

Tints of #D402CD

#ED02E5#FD12F5#FD2BF6#FD49F7#FD62F8#FE7CF9#FE9AFB#FEB3FC#FFD2FD#FFEBFE

Tones of #D402CD

#C511BF#B620B1#A72FA3#983E95#894D87#7A5C79

Color harmonies

Complementary — #02D409:

Analogous:

Triadic:

Contrast & accessibility

Against white text4.48:1 AA large only
Against black text4.69:1 AA

Best text color on #D402CD: #000000.

Semi-transparent (opacity) text on #D402CD

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 #D402CD: ·

How #D402CD looks with color blindness

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

Protanopia · #79779CDeuteranopia · #859590Tritanopia · #C9756D

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 fuchsia 600 · #C026D3Material Purple 500 · #9C27B0Tailwind fuchsia 500 · #D946EF

Palettes with a similar color

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

Dusty Bloom
#431997 · #4D0968 · #E311CF · #E41A83
Velvet Ruby Harbor
#1667AF · #1610CB · #8C12E1 · #DE12BF
Crimson Dusk
#C917C9 · #EA42D9 · #1AE019 · #C8F5CA
Dreamy Ruby Drift
#E21ACB · #AC2246 · #DB6421 · #D0CD2D
Modern Ruby Marble
#C3C61D · #23DCDF · #CA1DC6 · #F3F1CE
Vintage Ruby Mirage
#1EBBC8 · #DC20CE · #C5D21F · #C9ECF1

Similar colors

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

#E311CF#DE12BF#C917C9#E21ACB#CA1DC6#DC20CE#D01AE2#DC21D0#F30CD4#CB1EBC#B715CE#DA17B2

Browse neighbouring colors

← #D402CC  ·  #D402CE →

Frequently asked questions

What color is #D402CD?

#D402CD is Vivid Pink, a pink color (RGB 212, 2, 205). Its closest standard named color is DarkViolet.

What is the RGB and HSL of #D402CD?

#D402CD is RGB 212, 2, 205 — HSL 302°, 98%, 42% — CMYK 0%, 99%, 3%, 17%.

What colors go with #D402CD?

Its complement is #02D409; analogous partners are #7202D4 and #D40264. It also appears in 6+ palettes in our collection.

Can I use #D402CD for text?

Black text on #D402CD has a contrast ratio of 4.69:1 (passes WCAG AA); white text gives 4.48:1.