Skip to content

#f2f779

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

RGB
242, 247, 121
HSL
62°, 89%, 72%
CMYK
2, 0, 51, 3
Luminance
0.8678

Every format

HEX#f2f779
RGBrgb(242, 247, 121)
HSLhsl(62, 89%, 72%)
CMYKcmyk(2%, 0%, 51%, 3%)
LABlab(94.7 -18.3 59.2)
LCHlch(94.7 62.0 107.2)
OKLCHoklch(0.948 0.149 111.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2f779 on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#f2f779 on black: 18.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green96.9%
Blue47.5%

CMYK percentages

Cyan2.0%
Magenta0.0%
Yellow51.0%
Key (black)3.1%

Color previews

#f2f779 text on a black background

contrast 18.36:1

Card sample

#f2f779 text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 247, 121, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 247, 121, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2f779;
background: linear-gradient(135deg, #f2f779, #9EF779);

Monochromatic scale

Palettes built from #f2f779

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f779 in the Color Lab