Skip to content

#fff0af

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

RGB
255, 240, 175
HSL
49°, 100%, 84%
CMYK
0, 6, 31, 0
Luminance
0.8668

Every format

HEX#fff0af
RGBrgb(255, 240, 175)
HSLhsl(49, 100%, 84%)
CMYKcmyk(0%, 6%, 31%, 0%)
LABlab(94.6 -4.4 33.3)
LCHlch(94.6 33.6 97.5)
OKLCHoklch(0.952 0.084 96.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.1%
Blue68.6%

CMYK percentages

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

Color previews

#fff0af text on a black background

contrast 18.34:1

Card sample

#fff0af text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff0af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff0af in the Color Lab