Skip to content

#f2ebaf

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

RGB
242, 235, 175
HSL
54°, 72%, 82%
CMYK
0, 3, 28, 5
Luminance
0.8139

Every format

HEX#f2ebaf
RGBrgb(242, 235, 175)
HSLhsl(54, 72%, 82%)
CMYKcmyk(0%, 3%, 28%, 5%)
LABlab(92.3 -6.7 30.0)
LCHlch(92.3 30.8 102.6)
OKLCHoklch(0.931 0.077 102.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ebaf on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#f2ebaf on black: 17.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green92.2%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow27.7%
Key (black)5.1%

Color previews

#f2ebaf text on a black background

contrast 17.28:1

Card sample

#f2ebaf text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ebaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ebaf in the Color Lab