Skip to content

#f0ffba

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

RGB
240, 255, 186
HSL
73°, 100%, 87%
CMYK
6, 0, 27, 0
Luminance
0.9359

Every format

HEX#f0ffba
RGBrgb(240, 255, 186)
HSLhsl(73, 100%, 87%)
CMYKcmyk(6%, 0%, 27%, 0%)
LABlab(97.5 -15.9 31.4)
LCHlch(97.5 35.2 116.8)
OKLCHoklch(0.973 0.090 118.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green100.0%
Blue72.9%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow27.1%
Key (black)0.0%

Color previews

#f0ffba text on a black background

contrast 19.72:1

Card sample

#f0ffba text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ffba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ffba in the Color Lab