Skip to content

#f0ecdf

a pale, soft yellow · cool · closest name: ivory

RGB
240, 236, 223
HSL
46°, 36%, 91%
CMYK
0, 2, 7, 6
Luminance
0.8384

Every format

HEX#f0ecdf
RGBrgb(240, 236, 223)
HSLhsl(46, 36%, 91%)
CMYKcmyk(0%, 2%, 7%, 6%)
LABlab(93.4 -0.9 6.8)
LCHlch(93.4 6.8 97.4)
OKLCHoklch(0.943 0.018 92.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ecdf on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#f0ecdf on black: 17.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green92.5%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow7.1%
Key (black)5.9%

Color previews

#f0ecdf text on a black background

contrast 17.77:1

Card sample

#f0ecdf text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ecdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ecdf in the Color Lab