Skip to content

#f0f9ba

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

RGB
240, 249, 186
HSL
69°, 84%, 85%
CMYK
4, 0, 25, 2
Luminance
0.8982

Every format

HEX#f0f9ba
RGBrgb(240, 249, 186)
HSLhsl(69, 84%, 85%)
CMYKcmyk(4%, 0%, 25%, 2%)
LABlab(95.9 -13.0 29.3)
LCHlch(95.9 32.1 113.9)
OKLCHoklch(0.960 0.081 114.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green97.6%
Blue72.9%

CMYK percentages

Cyan3.6%
Magenta0.0%
Yellow25.3%
Key (black)2.4%

Color previews

#f0f9ba text on a black background

contrast 18.96:1

Card sample

#f0f9ba text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f9ba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f9ba in the Color Lab