Skip to content

#f0dfe2

a pale, soft red · warm · closest name: lavender

RGB
240, 223, 226
HSL
349°, 36%, 91%
CMYK
0, 7, 6, 6
Luminance
0.7679

Every format

HEX#f0dfe2
RGBrgb(240, 223, 226)
HSLhsl(349, 36%, 91%)
CMYKcmyk(0%, 7%, 6%, 6%)
LABlab(90.2 6.3 0.6)
LCHlch(90.2 6.3 5.7)
OKLCHoklch(0.918 0.019 5.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0dfe2 on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#f0dfe2 on black: 16.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green87.5%
Blue88.6%

CMYK percentages

Cyan0.0%
Magenta7.1%
Yellow5.8%
Key (black)5.9%

Color previews

#f0dfe2 text on a black background

contrast 16.36:1

Card sample

#f0dfe2 text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0dfe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0dfe2 in the Color Lab