Skip to content

#f9ffac

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

RGB
249, 255, 172
HSL
64°, 100%, 84%
CMYK
2, 0, 33, 0
Luminance
0.9464

Every format

HEX#f9ffac
RGBrgb(249, 255, 172)
HSLhsl(64, 100%, 84%)
CMYKcmyk(2%, 0%, 33%, 0%)
LABlab(97.9 -14.4 39.1)
LCHlch(97.9 41.6 110.2)
OKLCHoklch(0.977 0.104 111.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9ffac on white: 1.05:1
AA ✗ fail · AA-large · AAA
Aa
#f9ffac on black: 19.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green100.0%
Blue67.5%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow32.5%
Key (black)0.0%

Color previews

#f9ffac text on a black background

contrast 19.93:1

Card sample

#f9ffac text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9ffac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9ffac in the Color Lab