Skip to content

#fff2d4

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

RGB
255, 242, 212
HSL
42°, 100%, 92%
CMYK
0, 5, 17, 0
Luminance
0.8952

Every format

HEX#fff2d4
RGBrgb(255, 242, 212)
HSLhsl(42, 100%, 92%)
CMYKcmyk(0%, 5%, 17%, 0%)
LABlab(95.8 -0.4 16.1)
LCHlch(95.8 16.1 91.4)
OKLCHoklch(0.964 0.042 87.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff2d4 on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#fff2d4 on black: 18.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green94.9%
Blue83.1%

CMYK percentages

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

Color previews

#fff2d4 text on a black background

contrast 18.90:1

Card sample

#fff2d4 text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2d4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2d4 in the Color Lab