Skip to content

#d22dfb

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

RGB
210, 45, 251
HSL
288°, 96%, 58%
CMYK
16, 82, 0, 2
Luminance
0.2254

Every format

HEX#d22dfb
RGBrgb(210, 45, 251)
HSLhsl(288, 96%, 58%)
CMYKcmyk(16%, 82%, 0%, 2%)
LABlab(54.6 85.2 -68.2)
LCHlch(54.6 109.1 321.3)
OKLCHoklch(0.647 0.288 318.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d22dfb on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#d22dfb on black: 5.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green17.6%
Blue98.4%

CMYK percentages

Cyan16.3%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#d22dfb text on a black background

contrast 5.51:1

Card sample

#d22dfb text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d22dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d22dfb in the Color Lab