Skip to content

#f0fe2f

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

RGB
240, 254, 47
HSL
64°, 99%, 59%
CMYK
6, 0, 82, 0
Luminance
0.8961

Every format

HEX#f0fe2f
RGBrgb(240, 254, 47)
HSLhsl(64, 99%, 59%)
CMYKcmyk(6%, 0%, 82%, 0%)
LABlab(95.8 -26.5 86.8)
LCHlch(95.8 90.8 107.0)
OKLCHoklch(0.955 0.205 113.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green99.6%
Blue18.4%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow81.5%
Key (black)0.4%

Color previews

#f0fe2f text on a black background

contrast 18.92:1

Card sample

#f0fe2f text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fe2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fe2f in the Color Lab