Skip to content

#f8f921

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

RGB
248, 249, 33
HSL
60°, 95%, 55%
CMYK
0, 0, 87, 2
Luminance
0.8782

Every format

HEX#f8f921
RGBrgb(248, 249, 33)
HSLhsl(60, 95%, 55%)
CMYKcmyk(0%, 0%, 87%, 2%)
LABlab(95.1 -21.2 89.3)
LCHlch(95.1 91.8 103.4)
OKLCHoklch(0.950 0.202 110.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f8f921 on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#f8f921 on black: 18.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.3%
Green97.6%
Blue12.9%

CMYK percentages

Cyan0.4%
Magenta0.0%
Yellow86.7%
Key (black)2.4%

Color previews

#f8f921 text on a black background

contrast 18.56:1

Card sample

#f8f921 text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f8f921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f8f921 in the Color Lab