Skip to content

#f0fe49

a balanced, electric yellow · cool · closest name: yellow

RGB
240, 254, 73
HSL
65°, 99%, 64%
CMYK
6, 0, 71, 0
Luminance
0.8989

Every format

HEX#f0fe49
RGBrgb(240, 254, 73)
HSLhsl(65, 99%, 64%)
CMYKcmyk(6%, 0%, 71%, 0%)
LABlab(96.0 -25.5 79.7)
LCHlch(96.0 83.7 107.8)
OKLCHoklch(0.956 0.193 113.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green99.6%
Blue28.6%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow71.3%
Key (black)0.4%

Color previews

#f0fe49 text on a black background

contrast 18.98:1

Card sample

#f0fe49 text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 254, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 254, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0fe49;
background: linear-gradient(135deg, #f0fe49, #77FE49);

Monochromatic scale

Palettes built from #f0fe49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fe49 in the Color Lab