Skip to content

#dac7f2

a pale, vivid violet · warm · closest name: lavender

RGB
218, 199, 242
HSL
267°, 62%, 87%
CMYK
10, 18, 0, 5
Luminance
0.6216

Every format

HEX#dac7f2
RGBrgb(218, 199, 242)
HSLhsl(267, 62%, 87%)
CMYKcmyk(10%, 18%, 0%, 5%)
LABlab(83.0 14.6 -18.8)
LCHlch(83.0 23.8 307.9)
OKLCHoklch(0.859 0.062 305.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dac7f2 on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#dac7f2 on black: 13.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green78.0%
Blue94.9%

CMYK percentages

Cyan9.9%
Magenta17.8%
Yellow0.0%
Key (black)5.1%

Color previews

#dac7f2 text on a black background

contrast 13.43:1

Card sample

#dac7f2 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(218, 199, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(218, 199, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dac7f2;
background: linear-gradient(135deg, #dac7f2, #F2C7ED);

Monochromatic scale

Palettes built from #dac7f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dac7f2 in the Color Lab