Skip to content

#f0ffaf

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

RGB
240, 255, 175
HSL
71°, 100%, 84%
CMYK
6, 0, 31, 0
Luminance
0.9314

Every format

HEX#f0ffaf
RGBrgb(240, 255, 175)
HSLhsl(71, 100%, 84%)
CMYKcmyk(6%, 0%, 31%, 0%)
LABlab(97.3 -17.3 36.7)
LCHlch(97.3 40.6 115.3)
OKLCHoklch(0.971 0.102 117.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ffaf on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#f0ffaf on black: 19.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green100.0%
Blue68.6%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow31.4%
Key (black)0.0%

Color previews

#f0ffaf text on a black background

contrast 19.63:1

Card sample

#f0ffaf text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ffaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ffaf in the Color Lab