Skip to content

#fddc2e

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

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

Every format

HEX#fddc2e
RGBrgb(253, 220, 46)
HSLhsl(50, 98%, 59%)
CMYKcmyk(0%, 13%, 82%, 1%)
LABlab(88.1 -4.6 80.9)
LCHlch(88.1 81.1 93.3)
OKLCHoklch(0.896 0.175 97.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green86.3%
Blue18.0%

CMYK percentages

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

Color previews

#fddc2e text on a black background

contrast 15.45:1

Card sample

#fddc2e text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fddc2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fddc2e in the Color Lab