Skip to content

#fff0ac

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

RGB
255, 240, 172
HSL
49°, 100%, 84%
CMYK
0, 6, 33, 0
Luminance
0.8656

Every format

HEX#fff0ac
RGBrgb(255, 240, 172)
HSLhsl(49, 100%, 84%)
CMYKcmyk(0%, 6%, 33%, 0%)
LABlab(94.5 -4.7 34.8)
LCHlch(94.5 35.1 97.8)
OKLCHoklch(0.951 0.087 97.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff0ac on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#fff0ac on black: 18.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green94.1%
Blue67.5%

CMYK percentages

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

Color previews

#fff0ac text on a black background

contrast 18.31:1

Card sample

#fff0ac text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff0ac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff0ac in the Color Lab