Skip to content

#f8f2df

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

RGB
248, 242, 223
HSL
46°, 64%, 92%
CMYK
0, 2, 10, 3
Luminance
0.8879

Every format

HEX#f8f2df
RGBrgb(248, 242, 223)
HSLhsl(46, 64%, 92%)
CMYKcmyk(0%, 2%, 10%, 3%)
LABlab(95.5 -1.2 9.9)
LCHlch(95.5 9.9 96.7)
OKLCHoklch(0.961 0.026 92.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red97.3%
Green94.9%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow10.1%
Key (black)2.7%

Color previews

#f8f2df text on a black background

contrast 18.76:1

Card sample

#f8f2df text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f8f2df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f8f2df in the Color Lab