Skip to content

#fff4b2

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

RGB
255, 244, 178
HSL
51°, 100%, 85%
CMYK
0, 4, 30, 0
Luminance
0.8918

Every format

HEX#fff4b2
RGBrgb(255, 244, 178)
HSLhsl(51, 100%, 85%)
CMYKcmyk(0%, 4%, 30%, 0%)
LABlab(95.7 -6.0 33.2)
LCHlch(95.7 33.7 100.2)
OKLCHoklch(0.960 0.084 99.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff4b2 on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#fff4b2 on black: 18.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green95.7%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow30.2%
Key (black)0.0%

Color previews

#fff4b2 text on a black background

contrast 18.84:1

Card sample

#fff4b2 text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff4b2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff4b2 in the Color Lab