Skip to content

#f7dc2f

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

RGB
247, 220, 47
HSL
52°, 93%, 58%
CMYK
0, 11, 81, 3
Luminance
0.7117

Every format

HEX#f7dc2f
RGBrgb(247, 220, 47)
HSLhsl(52, 93%, 58%)
CMYKcmyk(0%, 11%, 81%, 3%)
LABlab(87.6 -7.1 80.0)
LCHlch(87.6 80.3 95.1)
OKLCHoklch(0.890 0.175 99.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f7dc2f on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#f7dc2f on black: 15.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.9%
Green86.3%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta10.9%
Yellow81.0%
Key (black)3.1%

Color previews

#f7dc2f text on a black background

contrast 15.23:1

Card sample

#f7dc2f text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(247, 220, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(247, 220, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f7dc2f;
background: linear-gradient(135deg, #f7dc2f, #8DF72F);

Monochromatic scale

Palettes built from #f7dc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f7dc2f in the Color Lab