Skip to content

#d18df7

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

RGB
209, 141, 247
HSL
279°, 87%, 76%
CMYK
15, 43, 0, 3
Luminance
0.3932

Every format

HEX#d18df7
RGBrgb(209, 141, 247)
HSLhsl(279, 87%, 76%)
CMYKcmyk(15%, 43%, 0%, 3%)
LABlab(69.0 44.2 -43.1)
LCHlch(69.0 61.7 315.7)
OKLCHoklch(0.751 0.162 312.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d18df7 on white: 2.37:1
AA ✗ fail · AA-large · AAA
Aa
#d18df7 on black: 8.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.0%
Green55.3%
Blue96.9%

CMYK percentages

Cyan15.4%
Magenta42.9%
Yellow0.0%
Key (black)3.1%

Color previews

#d18df7 text on a black background

contrast 8.86:1

Card sample

#d18df7 text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d18df7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d18df7 in the Color Lab