Skip to content

#fff2c6

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

RGB
255, 242, 198
HSL
46°, 100%, 89%
CMYK
0, 5, 22, 0
Luminance
0.8884

Every format

HEX#fff2c6
RGBrgb(255, 242, 198)
HSLhsl(46, 100%, 89%)
CMYKcmyk(0%, 5%, 22%, 0%)
LABlab(95.5 -2.4 22.9)
LCHlch(95.5 23.0 96.0)
OKLCHoklch(0.961 0.059 93.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.9%
Blue77.6%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow22.4%
Key (black)0.0%

Color previews

#fff2c6 text on a black background

contrast 18.77:1

Card sample

#fff2c6 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2c6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2c6 in the Color Lab