Skip to content

#f4ebac

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

RGB
244, 235, 172
HSL
53°, 77%, 82%
CMYK
0, 4, 30, 4
Luminance
0.8163

Every format

HEX#f4ebac
RGBrgb(244, 235, 172)
HSLhsl(53, 77%, 82%)
CMYKcmyk(0%, 4%, 30%, 4%)
LABlab(92.4 -6.4 31.7)
LCHlch(92.4 32.4 101.3)
OKLCHoklch(0.932 0.081 100.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red95.7%
Green92.2%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta3.7%
Yellow29.5%
Key (black)4.3%

Color previews

#f4ebac text on a black background

contrast 17.33:1

Card sample

#f4ebac text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f4ebac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f4ebac in the Color Lab