Skip to content

#f0fafd

a pale, electric cyan · cool · closest name: white

RGB
240, 250, 253
HSL
194°, 77%, 97%
CMYK
5, 1, 0, 1
Luminance
0.9399

Every format

HEX#f0fafd
RGBrgb(240, 250, 253)
HSLhsl(194, 77%, 97%)
CMYKcmyk(5%, 1%, 0%, 1%)
LABlab(97.6 -2.7 -2.6)
LCHlch(97.6 3.8 223.3)
OKLCHoklch(0.979 0.011 217.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0fafd on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#f0fafd on black: 19.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green98.0%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta1.2%
Yellow0.0%
Key (black)0.8%

Color previews

#f0fafd text on a black background

contrast 19.80:1

Card sample

#f0fafd text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fafd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fafd in the Color Lab