Skip to content

#f0daf2

a pale, vivid magenta / pink · warm · closest name: lavender

RGB
240, 218, 242
HSL
295°, 48%, 90%
CMYK
1, 10, 0, 5
Luminance
0.7508

Every format

HEX#f0daf2
RGBrgb(240, 218, 242)
HSLhsl(295, 48%, 90%)
CMYKcmyk(1%, 10%, 0%, 5%)
LABlab(89.4 11.7 -8.9)
LCHlch(89.4 14.8 322.7)
OKLCHoklch(0.913 0.040 323.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0daf2 on white: 1.31:1
AA ✗ fail · AA-large · AAA
Aa
#f0daf2 on black: 16.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green85.5%
Blue94.9%

CMYK percentages

Cyan0.8%
Magenta9.9%
Yellow0.0%
Key (black)5.1%

Color previews

#f0daf2 text on a black background

contrast 16.02:1

Card sample

#f0daf2 text on a white background

contrast 1.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0daf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0daf2 in the Color Lab