Skip to content

#f0f9af

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

RGB
240, 249, 175
HSL
67°, 86%, 83%
CMYK
4, 0, 30, 2
Luminance
0.8937

Every format

HEX#f0f9af
RGBrgb(240, 249, 175)
HSLhsl(67, 86%, 83%)
CMYKcmyk(4%, 0%, 30%, 2%)
LABlab(95.7 -14.4 34.6)
LCHlch(95.7 37.5 112.6)
OKLCHoklch(0.958 0.095 113.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green97.6%
Blue68.6%

CMYK percentages

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

Color previews

#f0f9af text on a black background

contrast 18.87:1

Card sample

#f0f9af text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f9af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f9af in the Color Lab