Skip to content

#df97ff

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

RGB
223, 151, 255
HSL
282°, 100%, 80%
CMYK
13, 41, 0, 0
Luminance
0.4504

Every format

HEX#df97ff
RGBrgb(223, 151, 255)
HSLhsl(282, 100%, 80%)
CMYKcmyk(13%, 41%, 0%, 0%)
LABlab(72.9 44.6 -41.2)
LCHlch(72.9 60.7 317.3)
OKLCHoklch(0.785 0.161 314.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df97ff on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#df97ff on black: 10.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green59.2%
Blue100.0%

CMYK percentages

Cyan12.5%
Magenta40.8%
Yellow0.0%
Key (black)0.0%

Color previews

#df97ff text on a black background

contrast 10.01:1

Card sample

#df97ff text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df97ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df97ff in the Color Lab