Skip to content

#d02fff

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

RGB
208, 47, 255
HSL
286°, 100%, 59%
CMYK
18, 82, 0, 0
Luminance
0.2266

Every format

HEX#d02fff
RGBrgb(208, 47, 255)
HSLhsl(286, 100%, 59%)
CMYKcmyk(18%, 82%, 0%, 0%)
LABlab(54.7 85.1 -70.2)
LCHlch(54.7 110.3 320.5)
OKLCHoklch(0.648 0.289 316.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02fff on white: 3.80:1
AA ✗ fail · AA-large · AAA
Aa
#d02fff on black: 5.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green18.4%
Blue100.0%

CMYK percentages

Cyan18.4%
Magenta81.6%
Yellow0.0%
Key (black)0.0%

Color previews

#d02fff text on a black background

contrast 5.53:1

Card sample

#d02fff text on a white background

contrast 3.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02fff in the Color Lab