Skip to content

#dc9dfb

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

RGB
220, 157, 251
HSL
280°, 92%, 80%
CMYK
12, 38, 0, 2
Luminance
0.4629

Every format

HEX#dc9dfb
RGBrgb(220, 157, 251)
HSLhsl(280, 92%, 80%)
CMYKcmyk(12%, 38%, 0%, 2%)
LABlab(73.7 39.7 -37.8)
LCHlch(73.7 54.8 316.4)
OKLCHoklch(0.789 0.145 314.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc9dfb on white: 2.05:1
AA ✗ fail · AA-large · AAA
Aa
#dc9dfb on black: 10.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green61.6%
Blue98.4%

CMYK percentages

Cyan12.4%
Magenta37.5%
Yellow0.0%
Key (black)1.6%

Color previews

#dc9dfb text on a black background

contrast 10.26:1

Card sample

#dc9dfb text on a white background

contrast 2.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc9dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc9dfb in the Color Lab