Skip to content

#fff2cc

a pale, electric yellow · warm · closest name: beige

RGB
255, 242, 204
HSL
45°, 100%, 90%
CMYK
0, 5, 20, 0
Luminance
0.8912

Every format

HEX#fff2cc
RGBrgb(255, 242, 204)
HSLhsl(45, 100%, 90%)
CMYKcmyk(0%, 5%, 20%, 0%)
LABlab(95.6 -1.6 19.9)
LCHlch(95.6 20.0 94.5)
OKLCHoklch(0.962 0.051 91.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff2cc on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#fff2cc on black: 18.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green94.9%
Blue80.0%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow20.0%
Key (black)0.0%

Color previews

#fff2cc text on a black background

contrast 18.82:1

Card sample

#fff2cc text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2cc in the Color Lab