Skip to content

#f5ef21

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

RGB
245, 239, 33
HSL
58°, 91%, 55%
CMYK
0, 2, 87, 4
Luminance
0.8126

Every format

HEX#f5ef21
RGBrgb(245, 239, 33)
HSLhsl(58, 91%, 55%)
CMYKcmyk(0%, 2%, 87%, 4%)
LABlab(92.3 -17.6 86.9)
LCHlch(92.3 88.7 101.5)
OKLCHoklch(0.927 0.194 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f5ef21 on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#f5ef21 on black: 17.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.1%
Green93.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow86.5%
Key (black)3.9%

Color previews

#f5ef21 text on a black background

contrast 17.25:1

Card sample

#f5ef21 text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f5ef21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f5ef21 in the Color Lab