Skip to content

#f1ef21

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

RGB
241, 239, 33
HSL
59°, 88%, 54%
CMYK
0, 1, 86, 6
Luminance
0.8054

Every format

HEX#f1ef21
RGBrgb(241, 239, 33)
HSLhsl(59, 88%, 54%)
CMYKcmyk(0%, 1%, 86%, 6%)
LABlab(91.9 -19.3 86.5)
LCHlch(91.9 88.7 102.6)
OKLCHoklch(0.924 0.195 109.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f1ef21 on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#f1ef21 on black: 17.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green93.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow86.3%
Key (black)5.5%

Color previews

#f1ef21 text on a black background

contrast 17.11:1

Card sample

#f1ef21 text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(241, 239, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(241, 239, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f1ef21;
background: linear-gradient(135deg, #f1ef21, #68F121);

Monochromatic scale

Palettes built from #f1ef21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f1ef21 in the Color Lab