Skip to content

#fccc2a

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

RGB
252, 204, 42
HSL
46°, 97%, 58%
CMYK
0, 19, 83, 1
Luminance
0.6405

Every format

HEX#fccc2a
RGBrgb(252, 204, 42)
HSLhsl(46, 97%, 58%)
CMYKcmyk(0%, 19%, 83%, 1%)
LABlab(84.0 3.0 78.5)
LCHlch(84.0 78.5 87.8)
OKLCHoklch(0.863 0.168 90.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green80.0%
Blue16.5%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow83.3%
Key (black)1.2%

Color previews

#fccc2a text on a black background

contrast 13.81:1

Card sample

#fccc2a text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccc2a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc2a in the Color Lab