Skip to content

#d031df

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

RGB
208, 49, 223
HSL
295°, 73%, 53%
CMYK
7, 78, 0, 13
Luminance
0.2093

Every format

HEX#d031df
RGBrgb(208, 49, 223)
HSLhsl(295, 73%, 53%)
CMYKcmyk(7%, 78%, 0%, 13%)
LABlab(52.9 79.1 -55.3)
LCHlch(52.9 96.5 325.1)
OKLCHoklch(0.629 0.263 324.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d031df on white: 4.05:1
AA ✗ fail · AA-large · AAA
Aa
#d031df on black: 5.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green19.2%
Blue87.5%

CMYK percentages

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

Color previews

#d031df text on a black background

contrast 5.19:1

Card sample

#d031df text on a white background

contrast 4.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d031df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d031df in the Color Lab