Skip to content

#fff2c0

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

RGB
255, 242, 192
HSL
48°, 100%, 88%
CMYK
0, 5, 25, 0
Luminance
0.8857

Every format

HEX#fff2c0
RGBrgb(255, 242, 192)
HSLhsl(48, 100%, 88%)
CMYKcmyk(0%, 5%, 25%, 0%)
LABlab(95.4 -3.2 25.8)
LCHlch(95.4 26.0 97.1)
OKLCHoklch(0.959 0.066 95.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.9%
Blue75.3%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow24.7%
Key (black)0.0%

Color previews

#fff2c0 text on a black background

contrast 18.71:1

Card sample

#fff2c0 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2c0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2c0 in the Color Lab