Skip to content

#fff9cb

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

RGB
255, 249, 203
HSL
53°, 100%, 90%
CMYK
0, 2, 20, 0
Luminance
0.9332

Every format

HEX#fff9cb
RGBrgb(255, 249, 203)
HSLhsl(53, 100%, 90%)
CMYKcmyk(0%, 2%, 20%, 0%)
LABlab(97.4 -5.2 22.9)
LCHlch(97.4 23.4 102.8)
OKLCHoklch(0.975 0.060 101.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green97.6%
Blue79.6%

CMYK percentages

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

Color previews

#fff9cb text on a black background

contrast 19.66:1

Card sample

#fff9cb text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff9cb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff9cb in the Color Lab