Skip to content

#f2f91f

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

RGB
242, 249, 31
HSL
62°, 95%, 55%
CMYK
3, 0, 88, 2
Luminance
0.8673

Every format

HEX#f2f91f
RGBrgb(242, 249, 31)
HSLhsl(62, 95%, 55%)
CMYKcmyk(3%, 0%, 88%, 2%)
LABlab(94.6 -23.7 89.0)
LCHlch(94.6 92.2 104.9)
OKLCHoklch(0.946 0.204 111.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green97.6%
Blue12.2%

CMYK percentages

Cyan2.8%
Magenta0.0%
Yellow87.6%
Key (black)2.4%

Color previews

#f2f91f text on a black background

contrast 18.35:1

Card sample

#f2f91f text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 249, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 249, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2f91f;
background: linear-gradient(135deg, #f2f91f, #61F91F);

Monochromatic scale

Palettes built from #f2f91f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f91f in the Color Lab