Skip to content

#d52fff

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

RGB
213, 47, 255
HSL
288°, 100%, 59%
CMYK
17, 82, 0, 0
Luminance
0.2340

Every format

HEX#d52fff
RGBrgb(213, 47, 255)
HSLhsl(288, 100%, 59%)
CMYKcmyk(17%, 82%, 0%, 0%)
LABlab(55.5 85.9 -69.0)
LCHlch(55.5 110.2 321.2)
OKLCHoklch(0.655 0.291 318.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d52fff on white: 3.70:1
AA ✗ fail · AA-large · AAA
Aa
#d52fff on black: 5.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.5%
Green18.4%
Blue100.0%

CMYK percentages

Cyan16.5%
Magenta81.6%
Yellow0.0%
Key (black)0.0%

Color previews

#d52fff text on a black background

contrast 5.68:1

Card sample

#d52fff text on a white background

contrast 3.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d52fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d52fff in the Color Lab