Skip to content

#f5f2dc

a pale, vivid yellow · cool · “beige”

RGB
245, 242, 220
HSL
53°, 56%, 91%
CMYK
0, 1, 10, 4
Luminance
0.8808

Every format

HEX#f5f2dc
RGBrgb(245, 242, 220)
HSLhsl(53, 56%, 91%)
CMYKcmyk(0%, 1%, 10%, 4%)
LABlab(95.2 -2.7 11.0)
LCHlch(95.2 11.3 103.7)
OKLCHoklch(0.958 0.029 100.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f5f2dc on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#f5f2dc on black: 18.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.1%
Green94.9%
Blue86.3%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow10.2%
Key (black)3.9%

Color previews

#f5f2dc text on a black background

contrast 18.62:1

Card sample

#f5f2dc text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f5f2dc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f5f2dc in the Color Lab