Skip to content

#fccc4e

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

RGB
252, 204, 78
HSL
43°, 97%, 65%
CMYK
0, 19, 69, 1
Luminance
0.6443

Every format

HEX#fccc4e
RGBrgb(252, 204, 78)
HSLhsl(43, 97%, 65%)
CMYKcmyk(0%, 19%, 69%, 1%)
LABlab(84.2 4.4 66.5)
LCHlch(84.2 66.7 86.2)
OKLCHoklch(0.865 0.149 87.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fccc4e on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#fccc4e on black: 13.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green80.0%
Blue30.6%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow69.0%
Key (black)1.2%

Color previews

#fccc4e text on a black background

contrast 13.89:1

Card sample

#fccc4e text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccc4e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc4e in the Color Lab