Skip to content

#f0ecba

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

RGB
240, 236, 186
HSL
56°, 64%, 84%
CMYK
0, 2, 23, 6
Luminance
0.8206

Every format

HEX#f0ecba
RGBrgb(240, 236, 186)
HSLhsl(56, 64%, 84%)
CMYKcmyk(0%, 2%, 23%, 6%)
LABlab(92.6 -6.5 24.8)
LCHlch(92.6 25.6 104.7)
OKLCHoklch(0.934 0.065 103.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ecba on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#f0ecba on black: 17.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green92.5%
Blue72.9%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow22.5%
Key (black)5.9%

Color previews

#f0ecba text on a black background

contrast 17.41:1

Card sample

#f0ecba text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ecba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ecba in the Color Lab