Skip to content

#f0ebcc

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

RGB
240, 235, 204
HSL
52°, 55%, 87%
CMYK
0, 2, 15, 6
Luminance
0.8230

Every format

HEX#f0ebcc
RGBrgb(240, 235, 204)
HSLhsl(52, 55%, 87%)
CMYKcmyk(0%, 2%, 15%, 6%)
LABlab(92.7 -3.4 15.7)
LCHlch(92.7 16.0 102.2)
OKLCHoklch(0.936 0.041 99.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ebcc on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#f0ebcc on black: 17.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green92.2%
Blue80.0%

CMYK percentages

Cyan0.0%
Magenta2.1%
Yellow15.0%
Key (black)5.9%

Color previews

#f0ebcc text on a black background

contrast 17.46:1

Card sample

#f0ebcc text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ebcc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ebcc in the Color Lab