Skip to content

#f7cd1c

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

RGB
247, 205, 28
HSL
49°, 93%, 54%
CMYK
0, 17, 89, 3
Luminance
0.6352

Every format

HEX#f7cd1c
RGBrgb(247, 205, 28)
HSLhsl(49, 93%, 54%)
CMYKcmyk(0%, 17%, 89%, 3%)
LABlab(83.7 0.1 81.2)
LCHlch(83.7 81.2 90.0)
OKLCHoklch(0.860 0.172 93.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f7cd1c on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#f7cd1c on black: 13.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.9%
Green80.4%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta17.0%
Yellow88.7%
Key (black)3.1%

Color previews

#f7cd1c text on a black background

contrast 13.70:1

Card sample

#f7cd1c text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f7cd1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f7cd1c in the Color Lab