Skip to content

#df8afc

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

RGB
223, 138, 252
HSL
285°, 95%, 77%
CMYK
12, 45, 0, 1
Luminance
0.4089

Every format

HEX#df8afc
RGBrgb(223, 138, 252)
HSLhsl(285, 95%, 77%)
CMYKcmyk(12%, 45%, 0%, 1%)
LABlab(70.1 50.7 -44.0)
LCHlch(70.1 67.1 319.1)
OKLCHoklch(0.763 0.179 317.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df8afc on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#df8afc on black: 9.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green54.1%
Blue98.8%

CMYK percentages

Cyan11.5%
Magenta45.2%
Yellow0.0%
Key (black)1.2%

Color previews

#df8afc text on a black background

contrast 9.18:1

Card sample

#df8afc text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df8afc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df8afc in the Color Lab