Skip to content

#f9f7f2

a pale, soft yellow · warm · closest name: white

RGB
249, 247, 242
HSL
43°, 37%, 96%
CMYK
0, 1, 3, 2
Luminance
0.9307

Every format

HEX#f9f7f2
RGBrgb(249, 247, 242)
HSLhsl(43, 37%, 96%)
CMYKcmyk(0%, 1%, 3%, 2%)
LABlab(97.3 -0.2 2.6)
LCHlch(97.3 2.6 94.3)
OKLCHoklch(0.976 0.007 88.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9f7f2 on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#f9f7f2 on black: 19.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green96.9%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow2.8%
Key (black)2.4%

Color previews

#f9f7f2 text on a black background

contrast 19.61:1

Card sample

#f9f7f2 text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9f7f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9f7f2 in the Color Lab