Skip to content

#fff2a7

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

RGB
255, 242, 167
HSL
51°, 100%, 83%
CMYK
0, 5, 35, 0
Luminance
0.8755

Every format

HEX#fff2a7
RGBrgb(255, 242, 167)
HSLhsl(51, 100%, 83%)
CMYKcmyk(0%, 5%, 35%, 0%)
LABlab(95.0 -6.3 37.8)
LCHlch(95.0 38.3 99.5)
OKLCHoklch(0.955 0.095 99.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.9%
Blue65.5%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow34.5%
Key (black)0.0%

Color previews

#fff2a7 text on a black background

contrast 18.51:1

Card sample

#fff2a7 text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2a7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2a7 in the Color Lab