Skip to content

#f0fafc

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

RGB
240, 250, 252
HSL
190°, 67%, 97%
CMYK
5, 1, 0, 1
Luminance
0.9392

Every format

HEX#f0fafc
RGBrgb(240, 250, 252)
HSLhsl(190, 67%, 97%)
CMYKcmyk(5%, 1%, 0%, 1%)
LABlab(97.6 -2.9 -2.1)
LCHlch(97.6 3.6 215.8)
OKLCHoklch(0.978 0.011 211.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green98.0%
Blue98.8%

CMYK percentages

Cyan4.8%
Magenta0.8%
Yellow0.0%
Key (black)1.2%

Color previews

#f0fafc text on a black background

contrast 19.78:1

Card sample

#f0fafc text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fafc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fafc in the Color Lab