Skip to content

#fff2b2

a light, electric yellow · cool · closest name: khaki

RGB
255, 242, 178
HSL
50°, 100%, 85%
CMYK
0, 5, 30, 0
Luminance
0.8798

Every format

HEX#fff2b2
RGBrgb(255, 242, 178)
HSLhsl(50, 100%, 85%)
CMYKcmyk(0%, 5%, 30%, 0%)
LABlab(95.2 -5.0 32.5)
LCHlch(95.2 32.9 98.8)
OKLCHoklch(0.957 0.082 98.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.9%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow30.2%
Key (black)0.0%

Color previews

#fff2b2 text on a black background

contrast 18.60:1

Card sample

#fff2b2 text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2b2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2b2 in the Color Lab