Skip to content

#dc7ef1

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

RGB
220, 126, 241
HSL
289°, 80%, 72%
CMYK
9, 48, 0, 6
Luminance
0.3649

Every format

HEX#dc7ef1
RGBrgb(220, 126, 241)
HSLhsl(289, 80%, 72%)
CMYKcmyk(9%, 48%, 0%, 6%)
LABlab(66.9 53.9 -43.0)
LCHlch(66.9 68.9 321.4)
OKLCHoklch(0.737 0.185 320.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc7ef1 on white: 2.53:1
AA ✗ fail · AA-large · AAA
Aa
#dc7ef1 on black: 8.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green49.4%
Blue94.5%

CMYK percentages

Cyan8.7%
Magenta47.7%
Yellow0.0%
Key (black)5.5%

Color previews

#dc7ef1 text on a black background

contrast 8.30:1

Card sample

#dc7ef1 text on a white background

contrast 2.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc7ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc7ef1 in the Color Lab