Skip to content

#d18df1

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

RGB
209, 141, 241
HSL
281°, 78%, 75%
CMYK
13, 42, 0, 6
Luminance
0.3896

Every format

HEX#d18df1
RGBrgb(209, 141, 241)
HSLhsl(281, 78%, 75%)
CMYKcmyk(13%, 42%, 0%, 6%)
LABlab(68.7 43.0 -40.2)
LCHlch(68.7 58.9 316.9)
OKLCHoklch(0.748 0.155 314.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d18df1 on white: 2.39:1
AA ✗ fail · AA-large · AAA
Aa
#d18df1 on black: 8.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.0%
Green55.3%
Blue94.5%

CMYK percentages

Cyan13.3%
Magenta41.5%
Yellow0.0%
Key (black)5.5%

Color previews

#d18df1 text on a black background

contrast 8.79:1

Card sample

#d18df1 text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d18df1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d18df1 in the Color Lab