Skip to content

#f0fd6c

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

RGB
240, 253, 108
HSL
65°, 97%, 71%
CMYK
5, 0, 57, 1
Luminance
0.8986

Every format

HEX#f0fd6c
RGBrgb(240, 253, 108)
HSLhsl(65, 97%, 71%)
CMYKcmyk(5%, 0%, 57%, 1%)
LABlab(95.9 -23.0 66.4)
LCHlch(95.9 70.2 109.1)
OKLCHoklch(0.957 0.168 113.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0fd6c on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#f0fd6c on black: 18.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green99.2%
Blue42.4%

CMYK percentages

Cyan5.1%
Magenta0.0%
Yellow57.3%
Key (black)0.8%

Color previews

#f0fd6c text on a black background

contrast 18.97:1

Card sample

#f0fd6c text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fd6c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fd6c in the Color Lab