Skip to content

#f0fcaf

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

RGB
240, 252, 175
HSL
69°, 93%, 84%
CMYK
5, 0, 31, 1
Luminance
0.9124

Every format

HEX#f0fcaf
RGBrgb(240, 252, 175)
HSLhsl(69, 93%, 84%)
CMYKcmyk(5%, 0%, 31%, 1%)
LABlab(96.5 -15.9 35.6)
LCHlch(96.5 39.0 114.0)
OKLCHoklch(0.964 0.099 115.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0fcaf on white: 1.09:1
AA ✗ fail · AA-large · AAA
Aa
#f0fcaf on black: 19.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green98.8%
Blue68.6%

CMYK percentages

Cyan4.8%
Magenta0.0%
Yellow30.6%
Key (black)1.2%

Color previews

#f0fcaf text on a black background

contrast 19.25:1

Card sample

#f0fcaf text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fcaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fcaf in the Color Lab