Skip to content

#fff9cc

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

RGB
255, 249, 204
HSL
53°, 100%, 90%
CMYK
0, 2, 20, 0
Luminance
0.9337

Every format

HEX#fff9cc
RGBrgb(255, 249, 204)
HSLhsl(53, 100%, 90%)
CMYKcmyk(0%, 2%, 20%, 0%)
LABlab(97.4 -5.1 22.4)
LCHlch(97.4 22.9 102.8)
OKLCHoklch(0.976 0.058 101.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff9cc on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#fff9cc on black: 19.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green97.6%
Blue80.0%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow20.0%
Key (black)0.0%

Color previews

#fff9cc text on a black background

contrast 19.67:1

Card sample

#fff9cc text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff9cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff9cc in the Color Lab