Skip to content

#fccf2d

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

RGB
252, 207, 45
HSL
47°, 97%, 58%
CMYK
0, 18, 82, 1
Luminance
0.6551

Every format

HEX#fccf2d
RGBrgb(252, 207, 45)
HSLhsl(47, 97%, 58%)
CMYKcmyk(0%, 18%, 82%, 1%)
LABlab(84.8 1.5 78.3)
LCHlch(84.8 78.3 88.9)
OKLCHoklch(0.869 0.168 91.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fccf2d on white: 1.49:1
AA ✗ fail · AA-large · AAA
Aa
#fccf2d on black: 14.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green81.2%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta17.9%
Yellow82.1%
Key (black)1.2%

Color previews

#fccf2d text on a black background

contrast 14.10:1

Card sample

#fccf2d text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccf2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccf2d in the Color Lab