Skip to content

#f0ffad

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

RGB
240, 255, 173
HSL
71°, 100%, 84%
CMYK
6, 0, 32, 0
Luminance
0.9306

Every format

HEX#f0ffad
RGBrgb(240, 255, 173)
HSLhsl(71, 100%, 84%)
CMYKcmyk(6%, 0%, 32%, 0%)
LABlab(97.3 -17.6 37.6)
LCHlch(97.3 41.5 115.0)
OKLCHoklch(0.970 0.105 116.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green100.0%
Blue67.8%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow32.2%
Key (black)0.0%

Color previews

#f0ffad text on a black background

contrast 19.61:1

Card sample

#f0ffad text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ffad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ffad in the Color Lab