Skip to content

#f2f25b

a light, electric yellow · cool · closest name: gold

RGB
242, 242, 91
HSL
60°, 85%, 65%
CMYK
0, 0, 62, 5
Luminance
0.8314

Every format

HEX#f2f25b
RGBrgb(242, 242, 91)
HSLhsl(60, 85%, 65%)
CMYKcmyk(0%, 0%, 62%, 5%)
LABlab(93.1 -18.1 70.3)
LCHlch(93.1 72.5 104.4)
OKLCHoklch(0.934 0.169 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green94.9%
Blue35.7%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow62.4%
Key (black)5.1%

Color previews

#f2f25b text on a black background

contrast 17.63:1

Card sample

#f2f25b text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2f25b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f25b in the Color Lab