Skip to content

#d227ff

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

RGB
210, 39, 255
HSL
288°, 100%, 58%
CMYK
18, 85, 0, 0
Luminance
0.2237

Every format

HEX#d227ff
RGBrgb(210, 39, 255)
HSLhsl(288, 100%, 58%)
CMYKcmyk(18%, 85%, 0%, 0%)
LABlab(54.4 87.2 -70.7)
LCHlch(54.4 112.2 320.9)
OKLCHoklch(0.647 0.295 317.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green15.3%
Blue100.0%

CMYK percentages

Cyan17.6%
Magenta84.7%
Yellow0.0%
Key (black)0.0%

Color previews

#d227ff text on a black background

contrast 5.47:1

Card sample

#d227ff text on a white background

contrast 3.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d227ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d227ff in the Color Lab