Skip to content

#fddc2f

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

RGB
253, 220, 47
HSL
50°, 98%, 59%
CMYK
0, 13, 81, 1
Luminance
0.7227

Every format

HEX#fddc2f
RGBrgb(253, 220, 47)
HSLhsl(50, 98%, 59%)
CMYKcmyk(0%, 13%, 81%, 1%)
LABlab(88.1 -4.6 80.7)
LCHlch(88.1 80.8 93.2)
OKLCHoklch(0.896 0.175 97.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fddc2f on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#fddc2f on black: 15.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green86.3%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta13.0%
Yellow81.4%
Key (black)0.8%

Color previews

#fddc2f text on a black background

contrast 15.45:1

Card sample

#fddc2f text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fddc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fddc2f in the Color Lab