Skip to content

#f0f978

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

RGB
240, 249, 120
HSL
64°, 92%, 72%
CMYK
4, 0, 52, 2
Luminance
0.8763

Every format

HEX#f0f978
RGBrgb(240, 249, 120)
HSLhsl(64, 92%, 72%)
CMYKcmyk(4%, 0%, 52%, 2%)
LABlab(95.0 -20.2 60.1)
LCHlch(95.0 63.4 108.6)
OKLCHoklch(0.950 0.153 112.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0f978 on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#f0f978 on black: 18.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green97.6%
Blue47.1%

CMYK percentages

Cyan3.6%
Magenta0.0%
Yellow51.8%
Key (black)2.4%

Color previews

#f0f978 text on a black background

contrast 18.53:1

Card sample

#f0f978 text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 249, 120, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 249, 120, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0f978;
background: linear-gradient(135deg, #f0f978, #9AF978);

Monochromatic scale

Palettes built from #f0f978

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f978 in the Color Lab