Skip to content

#f2deb6

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

RGB
242, 222, 182
HSL
40°, 70%, 83%
CMYK
0, 8, 25, 5
Luminance
0.7450

Every format

HEX#f2deb6
RGBrgb(242, 222, 182)
HSLhsl(40, 70%, 83%)
CMYKcmyk(0%, 8%, 25%, 5%)
LABlab(89.2 0.8 22.1)
LCHlch(89.2 22.1 87.9)
OKLCHoklch(0.907 0.057 84.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2deb6 on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#f2deb6 on black: 15.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green87.1%
Blue71.4%

CMYK percentages

Cyan0.0%
Magenta8.3%
Yellow24.8%
Key (black)5.1%

Color previews

#f2deb6 text on a black background

contrast 15.90:1

Card sample

#f2deb6 text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2deb6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2deb6 in the Color Lab