Skip to content

#d52ace

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

RGB
213, 42, 206
HSL
303°, 67%, 50%
CMYK
0, 80, 3, 17
Luminance
0.2026

Every format

HEX#d52ace
RGBrgb(213, 42, 206)
HSLhsl(303, 67%, 50%)
CMYKcmyk(0%, 80%, 3%, 17%)
LABlab(52.1 79.2 -46.7)
LCHlch(52.1 91.9 329.5)
OKLCHoklch(0.622 0.259 330.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d52ace on white: 4.16:1
AA ✗ fail · AA-large · AAA
Aa
#d52ace on black: 5.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.5%
Green16.5%
Blue80.8%

CMYK percentages

Cyan0.0%
Magenta80.3%
Yellow3.3%
Key (black)16.5%

Color previews

#d52ace text on a black background

contrast 5.05:1

Card sample

#d52ace text on a white background

contrast 4.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(213, 42, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(213, 42, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d52ace;
background: linear-gradient(135deg, #d52ace, #D52A5C);

Monochromatic scale

Palettes built from #d52ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d52ace in the Color Lab