Skip to content

#f2fc4d

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

RGB
242, 252, 77
HSL
63°, 97%, 65%
CMYK
4, 0, 69, 1
Luminance
0.8903

Every format

HEX#f2fc4d
RGBrgb(242, 252, 77)
HSLhsl(63, 97%, 65%)
CMYKcmyk(4%, 0%, 69%, 1%)
LABlab(95.6 -23.6 78.0)
LCHlch(95.6 81.5 106.8)
OKLCHoklch(0.954 0.188 112.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2fc4d on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#f2fc4d on black: 18.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green98.8%
Blue30.2%

CMYK percentages

Cyan4.0%
Magenta0.0%
Yellow69.4%
Key (black)1.2%

Color previews

#f2fc4d text on a black background

contrast 18.81:1

Card sample

#f2fc4d text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 252, 77, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 252, 77, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2fc4d;
background: linear-gradient(135deg, #f2fc4d, #7DFC4D);

Monochromatic scale

Palettes built from #f2fc4d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fc4d in the Color Lab