Skip to content

#df9afb

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

RGB
223, 154, 251
HSL
283°, 92%, 79%
CMYK
11, 39, 0, 2
Luminance
0.4576

Every format

HEX#df9afb
RGBrgb(223, 154, 251)
HSLhsl(283, 92%, 79%)
CMYKcmyk(11%, 39%, 0%, 2%)
LABlab(73.4 42.2 -38.3)
LCHlch(73.4 57.0 317.8)
OKLCHoklch(0.788 0.151 315.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df9afb on white: 2.07:1
AA ✗ fail · AA-large · AAA
Aa
#df9afb on black: 10.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green60.4%
Blue98.4%

CMYK percentages

Cyan11.2%
Magenta38.6%
Yellow0.0%
Key (black)1.6%

Color previews

#df9afb text on a black background

contrast 10.15:1

Card sample

#df9afb text on a white background

contrast 2.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df9afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df9afb in the Color Lab