Skip to content

#df8cf0

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

RGB
223, 140, 240
HSL
290°, 77%, 75%
CMYK
7, 42, 0, 6
Luminance
0.4074

Every format

HEX#df8cf0
RGBrgb(223, 140, 240)
HSLhsl(290, 77%, 75%)
CMYKcmyk(7%, 42%, 0%, 6%)
LABlab(70.0 47.4 -37.6)
LCHlch(70.0 60.5 321.6)
OKLCHoklch(0.761 0.163 320.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df8cf0 on white: 2.30:1
AA ✗ fail · AA-large · AAA
Aa
#df8cf0 on black: 9.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green54.9%
Blue94.1%

CMYK percentages

Cyan7.1%
Magenta41.7%
Yellow0.0%
Key (black)5.9%

Color previews

#df8cf0 text on a black background

contrast 9.15:1

Card sample

#df8cf0 text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df8cf0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df8cf0 in the Color Lab