Skip to content

#f0cdf9

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

RGB
240, 205, 249
HSL
288°, 79%, 89%
CMYK
4, 18, 0, 2
Luminance
0.6903

Every format

HEX#f0cdf9
RGBrgb(240, 205, 249)
HSLhsl(288, 79%, 89%)
CMYKcmyk(4%, 18%, 0%, 2%)
LABlab(86.5 19.9 -17.0)
LCHlch(86.5 26.1 319.5)
OKLCHoklch(0.891 0.070 319.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0cdf9 on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#f0cdf9 on black: 14.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green80.4%
Blue97.6%

CMYK percentages

Cyan3.6%
Magenta17.7%
Yellow0.0%
Key (black)2.4%

Color previews

#f0cdf9 text on a black background

contrast 14.81:1

Card sample

#f0cdf9 text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 205, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 205, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0cdf9;
background: linear-gradient(135deg, #f0cdf9, #F9CDE5);

Monochromatic scale

Palettes built from #f0cdf9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0cdf9 in the Color Lab