Skip to content

#f1dafb

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

RGB
241, 218, 251
HSL
282°, 81%, 92%
CMYK
4, 13, 0, 2
Luminance
0.7581

Every format

HEX#f1dafb
RGBrgb(241, 218, 251)
HSLhsl(282, 81%, 92%)
CMYKcmyk(4%, 13%, 0%, 2%)
LABlab(89.8 13.7 -13.2)
LCHlch(89.8 19.0 316.2)
OKLCHoklch(0.917 0.051 315.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f1dafb on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#f1dafb on black: 16.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green85.5%
Blue98.4%

CMYK percentages

Cyan4.0%
Magenta13.1%
Yellow0.0%
Key (black)1.6%

Color previews

#f1dafb text on a black background

contrast 16.16:1

Card sample

#f1dafb text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f1dafb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f1dafb in the Color Lab