Skip to content

#d712df

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

RGB
215, 18, 223
HSL
298°, 85%, 47%
CMYK
4, 92, 0, 13
Luminance
0.2021

Every format

HEX#d712df
RGBrgb(215, 18, 223)
HSLhsl(298, 85%, 47%)
CMYKcmyk(4%, 92%, 0%, 13%)
LABlab(52.1 86.1 -56.5)
LCHlch(52.1 103.0 326.7)
OKLCHoklch(0.625 0.284 326.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d712df on white: 4.17:1
AA ✗ fail · AA-large · AAA
Aa
#d712df on black: 5.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.3%
Green7.1%
Blue87.5%

CMYK percentages

Cyan3.6%
Magenta91.9%
Yellow0.0%
Key (black)12.5%

Color previews

#d712df text on a black background

contrast 5.04:1

Card sample

#d712df text on a white background

contrast 4.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d712df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d712df in the Color Lab