Skip to content

#f9f1df

a pale, vivid yellow · warm · closest name: beige

RGB
249, 241, 223
HSL
42°, 68%, 93%
CMYK
0, 3, 10, 2
Luminance
0.8838

Every format

HEX#f9f1df
RGBrgb(249, 241, 223)
HSLhsl(42, 68%, 93%)
CMYKcmyk(0%, 3%, 10%, 2%)
LABlab(95.3 -0.3 9.6)
LCHlch(95.3 9.6 91.8)
OKLCHoklch(0.960 0.025 86.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9f1df on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#f9f1df on black: 18.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green94.5%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta3.2%
Yellow10.4%
Key (black)2.4%

Color previews

#f9f1df text on a black background

contrast 18.68:1

Card sample

#f9f1df text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9f1df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9f1df in the Color Lab