Skip to content

#f1f9af

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

RGB
241, 249, 175
HSL
67°, 86%, 83%
CMYK
3, 0, 30, 2
Luminance
0.8955

Every format

HEX#f1f9af
RGBrgb(241, 249, 175)
HSLhsl(67, 86%, 83%)
CMYKcmyk(3%, 0%, 30%, 2%)
LABlab(95.8 -14.0 34.7)
LCHlch(95.8 37.5 112.0)
OKLCHoklch(0.959 0.094 113.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f1f9af on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#f1f9af on black: 18.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green97.6%
Blue68.6%

CMYK percentages

Cyan3.2%
Magenta0.0%
Yellow29.7%
Key (black)2.4%

Color previews

#f1f9af text on a black background

contrast 18.91:1

Card sample

#f1f9af text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f1f9af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f1f9af in the Color Lab