Skip to content

#f7df4d

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

RGB
247, 223, 77
HSL
52°, 91%, 64%
CMYK
0, 10, 69, 3
Luminance
0.7309

Every format

HEX#f7df4d
RGBrgb(247, 223, 77)
HSLhsl(52, 91%, 64%)
CMYKcmyk(0%, 10%, 69%, 3%)
LABlab(88.5 -7.4 71.1)
LCHlch(88.5 71.5 96.0)
OKLCHoklch(0.898 0.161 99.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f7df4d on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#f7df4d on black: 15.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.9%
Green87.5%
Blue30.2%

CMYK percentages

Cyan0.0%
Magenta9.7%
Yellow68.8%
Key (black)3.1%

Color previews

#f7df4d text on a black background

contrast 15.62:1

Card sample

#f7df4d text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(247, 223, 77, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(247, 223, 77, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f7df4d;
background: linear-gradient(135deg, #f7df4d, #9EF74D);

Monochromatic scale

Palettes built from #f7df4d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f7df4d in the Color Lab