Skip to content

#f0fbae

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

RGB
240, 251, 174
HSL
69°, 91%, 83%
CMYK
4, 0, 31, 2
Luminance
0.9058

Every format

HEX#f0fbae
RGBrgb(240, 251, 174)
HSLhsl(69, 91%, 83%)
CMYKcmyk(4%, 0%, 31%, 2%)
LABlab(96.2 -15.5 35.8)
LCHlch(96.2 39.0 113.4)
OKLCHoklch(0.962 0.098 114.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0fbae on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#f0fbae on black: 19.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green98.4%
Blue68.2%

CMYK percentages

Cyan4.4%
Magenta0.0%
Yellow30.7%
Key (black)1.6%

Color previews

#f0fbae text on a black background

contrast 19.12:1

Card sample

#f0fbae text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fbae

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fbae in the Color Lab