Skip to content

#fff0cc

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

RGB
255, 240, 204
HSL
42°, 100%, 90%
CMYK
0, 6, 20, 0
Luminance
0.8794

Every format

HEX#fff0cc
RGBrgb(255, 240, 204)
HSLhsl(42, 100%, 90%)
CMYKcmyk(0%, 6%, 20%, 0%)
LABlab(95.1 -0.6 19.3)
LCHlch(95.1 19.3 91.6)
OKLCHoklch(0.958 0.050 88.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff0cc on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#fff0cc on black: 18.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green94.1%
Blue80.0%

CMYK percentages

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

Color previews

#fff0cc text on a black background

contrast 18.59:1

Card sample

#fff0cc text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff0cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff0cc in the Color Lab