Skip to content

#f2ecba

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

RGB
242, 236, 186
HSL
54°, 68%, 84%
CMYK
0, 3, 23, 5
Luminance
0.8241

Every format

HEX#f2ecba
RGBrgb(242, 236, 186)
HSLhsl(54, 68%, 84%)
CMYKcmyk(0%, 3%, 23%, 5%)
LABlab(92.8 -5.8 25.0)
LCHlch(92.8 25.7 103.0)
OKLCHoklch(0.935 0.065 101.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan0.0%
Magenta2.5%
Yellow23.1%
Key (black)5.1%

Color previews

#f2ecba text on a black background

contrast 17.48:1

Card sample

#f2ecba text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ecba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ecba in the Color Lab