Skip to content

#f2e4af

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

RGB
242, 228, 175
HSL
48°, 72%, 82%
CMYK
0, 6, 28, 5
Luminance
0.7746

Every format

HEX#f2e4af
RGBrgb(242, 228, 175)
HSLhsl(48, 72%, 82%)
CMYKcmyk(0%, 6%, 28%, 5%)
LABlab(90.5 -3.2 27.6)
LCHlch(90.5 27.8 96.6)
OKLCHoklch(0.917 0.070 95.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2e4af on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#f2e4af on black: 16.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green89.4%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta5.8%
Yellow27.7%
Key (black)5.1%

Color previews

#f2e4af text on a black background

contrast 16.49:1

Card sample

#f2e4af text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2e4af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2e4af in the Color Lab