Skip to content

#fccc2d

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

RGB
252, 204, 45
HSL
46°, 97%, 58%
CMYK
0, 19, 82, 1
Luminance
0.6407

Every format

HEX#fccc2d
RGBrgb(252, 204, 45)
HSLhsl(46, 97%, 58%)
CMYKcmyk(0%, 19%, 82%, 1%)
LABlab(84.0 3.1 77.7)
LCHlch(84.0 77.7 87.7)
OKLCHoklch(0.863 0.167 90.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green80.0%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow82.1%
Key (black)1.2%

Color previews

#fccc2d text on a black background

contrast 13.81:1

Card sample

#fccc2d text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccc2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc2d in the Color Lab