Skip to content

#f2f24b

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

RGB
242, 242, 75
HSL
60°, 87%, 62%
CMYK
0, 0, 69, 5
Luminance
0.8289

Every format

HEX#f2f24b
RGBrgb(242, 242, 75)
HSLhsl(60, 87%, 62%)
CMYKcmyk(0%, 0%, 69%, 5%)
LABlab(93.0 -18.9 76.1)
LCHlch(93.0 78.5 104.0)
OKLCHoklch(0.933 0.179 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2f24b on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#f2f24b on black: 17.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green94.9%
Blue29.4%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow69.0%
Key (black)5.1%

Color previews

#f2f24b text on a black background

contrast 17.58:1

Card sample

#f2f24b text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 242, 75, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 242, 75, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2f24b;
background: linear-gradient(135deg, #f2f24b, #83F24B);

Monochromatic scale

Palettes built from #f2f24b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f24b in the Color Lab