Skip to content

#fdcc2a

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

RGB
253, 204, 42
HSL
46°, 98%, 58%
CMYK
0, 19, 83, 1
Luminance
0.6424

Every format

HEX#fdcc2a
RGBrgb(253, 204, 42)
HSLhsl(46, 98%, 58%)
CMYKcmyk(0%, 19%, 83%, 1%)
LABlab(84.1 3.4 78.6)
LCHlch(84.1 78.7 87.5)
OKLCHoklch(0.864 0.168 90.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdcc2a on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#fdcc2a on black: 13.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green80.0%
Blue16.5%

CMYK percentages

Cyan0.0%
Magenta19.4%
Yellow83.4%
Key (black)0.8%

Color previews

#fdcc2a text on a black background

contrast 13.85:1

Card sample

#fdcc2a text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdcc2a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdcc2a in the Color Lab