Skip to content

#f7e921

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

RGB
247, 233, 33
HSL
56°, 93%, 55%
CMYK
0, 6, 87, 3
Luminance
0.7816

Every format

HEX#f7e921
RGBrgb(247, 233, 33)
HSLhsl(56, 93%, 55%)
CMYKcmyk(0%, 6%, 87%, 3%)
LABlab(90.8 -13.9 85.9)
LCHlch(90.8 87.0 99.2)
OKLCHoklch(0.916 0.189 105.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f7e921 on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#f7e921 on black: 16.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.9%
Green91.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta5.7%
Yellow86.6%
Key (black)3.1%

Color previews

#f7e921 text on a black background

contrast 16.63:1

Card sample

#f7e921 text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(247, 233, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(247, 233, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f7e921;
background: linear-gradient(135deg, #f7e921, #76F721);

Monochromatic scale

Palettes built from #f7e921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f7e921 in the Color Lab