Skip to content

#d22df8

a balanced, electric violet · warm · closest name: magenta

RGB
210, 45, 248
HSL
289°, 94%, 58%
CMYK
15, 82, 0, 3
Luminance
0.2236

Every format

HEX#d22df8
RGBrgb(210, 45, 248)
HSLhsl(289, 94%, 58%)
CMYKcmyk(15%, 82%, 0%, 3%)
LABlab(54.4 84.7 -66.8)
LCHlch(54.4 107.9 321.7)
OKLCHoklch(0.645 0.286 318.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d22df8 on white: 3.84:1
AA ✗ fail · AA-large · AAA
Aa
#d22df8 on black: 5.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green17.6%
Blue97.3%

CMYK percentages

Cyan15.3%
Magenta81.9%
Yellow0.0%
Key (black)2.7%

Color previews

#d22df8 text on a black background

contrast 5.47:1

Card sample

#d22df8 text on a white background

contrast 3.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 45, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 45, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d22df8;
background: linear-gradient(135deg, #d22df8, #F82D97);

Monochromatic scale

Palettes built from #d22df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d22df8 in the Color Lab