Skip to content

#fccc3b

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

RGB
252, 204, 59
HSL
45°, 97%, 61%
CMYK
0, 19, 77, 1
Luminance
0.6420

Every format

HEX#fccc3b
RGBrgb(252, 204, 59)
HSLhsl(45, 97%, 61%)
CMYKcmyk(0%, 19%, 77%, 1%)
LABlab(84.1 3.5 73.5)
LCHlch(84.1 73.5 87.2)
OKLCHoklch(0.864 0.160 89.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green80.0%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow76.6%
Key (black)1.2%

Color previews

#fccc3b text on a black background

contrast 13.84:1

Card sample

#fccc3b text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccc3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc3b in the Color Lab