Skip to content

#f8ef21

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

RGB
248, 239, 33
HSL
58°, 94%, 55%
CMYK
0, 4, 87, 3
Luminance
0.8180

Every format

HEX#f8ef21
RGBrgb(248, 239, 33)
HSLhsl(58, 94%, 55%)
CMYKcmyk(0%, 4%, 87%, 3%)
LABlab(92.5 -16.4 87.2)
LCHlch(92.5 88.7 100.7)
OKLCHoklch(0.930 0.194 106.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f8ef21 on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#f8ef21 on black: 17.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.3%
Green93.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta3.6%
Yellow86.7%
Key (black)2.7%

Color previews

#f8ef21 text on a black background

contrast 17.36:1

Card sample

#f8ef21 text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f8ef21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f8ef21 in the Color Lab