Skip to content

#fff2c2

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

RGB
255, 242, 194
HSL
47°, 100%, 88%
CMYK
0, 5, 24, 0
Luminance
0.8866

Every format

HEX#fff2c2
RGBrgb(255, 242, 194)
HSLhsl(47, 100%, 88%)
CMYKcmyk(0%, 5%, 24%, 0%)
LABlab(95.4 -2.9 24.8)
LCHlch(95.4 25.0 96.8)
OKLCHoklch(0.960 0.063 94.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.9%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow23.9%
Key (black)0.0%

Color previews

#fff2c2 text on a black background

contrast 18.73:1

Card sample

#fff2c2 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2c2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2c2 in the Color Lab