Skip to content

#fff2af

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

RGB
255, 242, 175
HSL
50°, 100%, 84%
CMYK
0, 5, 31, 0
Luminance
0.8786

Every format

HEX#fff2af
RGBrgb(255, 242, 175)
HSLhsl(50, 100%, 84%)
CMYKcmyk(0%, 5%, 31%, 0%)
LABlab(95.1 -5.4 34.0)
LCHlch(95.1 34.4 99.0)
OKLCHoklch(0.956 0.086 98.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.9%
Blue68.6%

CMYK percentages

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

Color previews

#fff2af text on a black background

contrast 18.57:1

Card sample

#fff2af text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2af in the Color Lab