Skip to content

#f8cc49

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

RGB
248, 204, 73
HSL
45°, 93%, 63%
CMYK
0, 18, 71, 3
Luminance
0.6362

Every format

HEX#f8cc49
RGBrgb(248, 204, 73)
HSLhsl(45, 93%, 63%)
CMYKcmyk(0%, 18%, 71%, 3%)
LABlab(83.8 2.4 67.9)
LCHlch(83.8 68.0 87.9)
OKLCHoklch(0.861 0.151 89.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red97.3%
Green80.0%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta17.7%
Yellow70.6%
Key (black)2.7%

Color previews

#f8cc49 text on a black background

contrast 13.72:1

Card sample

#f8cc49 text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(248, 204, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(248, 204, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f8cc49;
background: linear-gradient(135deg, #f8cc49, #AFF849);

Monochromatic scale

Palettes built from #f8cc49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f8cc49 in the Color Lab