Skip to content

#df8afb

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

RGB
223, 138, 251
HSL
285°, 93%, 76%
CMYK
11, 45, 0, 2
Luminance
0.4083

Every format

HEX#df8afb
RGBrgb(223, 138, 251)
HSLhsl(285, 93%, 76%)
CMYKcmyk(11%, 45%, 0%, 2%)
LABlab(70.1 50.5 -43.5)
LCHlch(70.1 66.7 319.3)
OKLCHoklch(0.763 0.178 317.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green54.1%
Blue98.4%

CMYK percentages

Cyan11.2%
Magenta45.0%
Yellow0.0%
Key (black)1.6%

Color previews

#df8afb text on a black background

contrast 9.17:1

Card sample

#df8afb text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df8afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df8afb in the Color Lab