Skip to content

#df7afc

a light, electric violet · warm · closest name: violet

RGB
223, 122, 252
HSL
287°, 96%, 73%
CMYK
12, 52, 0, 1
Luminance
0.3664

Every format

HEX#df7afc
RGBrgb(223, 122, 252)
HSLhsl(287, 96%, 73%)
CMYKcmyk(12%, 52%, 0%, 1%)
LABlab(67.0 58.8 -48.8)
LCHlch(67.0 76.4 320.3)
OKLCHoklch(0.740 0.204 318.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df7afc on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#df7afc on black: 8.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green47.8%
Blue98.8%

CMYK percentages

Cyan11.5%
Magenta51.6%
Yellow0.0%
Key (black)1.2%

Color previews

#df7afc text on a black background

contrast 8.33:1

Card sample

#df7afc text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 122, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 122, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #df7afc;
background: linear-gradient(135deg, #df7afc, #FC7AC2);

Monochromatic scale

Palettes built from #df7afc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df7afc in the Color Lab