Skip to content

#f0feaf

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

RGB
240, 254, 175
HSL
71°, 98%, 84%
CMYK
6, 0, 31, 0
Luminance
0.9250

Every format

HEX#f0feaf
RGBrgb(240, 254, 175)
HSLhsl(71, 98%, 84%)
CMYKcmyk(6%, 0%, 31%, 0%)
LABlab(97.0 -16.8 36.3)
LCHlch(97.0 40.0 114.9)
OKLCHoklch(0.968 0.101 116.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0feaf on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#f0feaf on black: 19.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green99.6%
Blue68.6%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow31.1%
Key (black)0.4%

Color previews

#f0feaf text on a black background

contrast 19.50:1

Card sample

#f0feaf text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0feaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0feaf in the Color Lab