Skip to content

#fff2ab

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

RGB
255, 242, 171
HSL
51°, 100%, 84%
CMYK
0, 5, 33, 0
Luminance
0.8770

Every format

HEX#fff2ab
RGBrgb(255, 242, 171)
HSLhsl(51, 100%, 84%)
CMYKcmyk(0%, 5%, 33%, 0%)
LABlab(95.0 -5.8 35.9)
LCHlch(95.0 36.4 99.3)
OKLCHoklch(0.955 0.090 99.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.9%
Blue67.1%

CMYK percentages

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

Color previews

#fff2ab text on a black background

contrast 18.54:1

Card sample

#fff2ab text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2ab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2ab in the Color Lab