Skip to content

#ffcc47

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

RGB
255, 204, 71
HSL
43°, 100%, 64%
CMYK
0, 20, 72, 0
Luminance
0.6490

Every format

HEX#ffcc47
RGBrgb(255, 204, 71)
HSLhsl(43, 100%, 64%)
CMYKcmyk(0%, 20%, 72%, 0%)
LABlab(84.4 5.3 69.6)
LCHlch(84.4 69.8 85.7)
OKLCHoklch(0.868 0.154 87.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcc47 on white: 1.50:1
AA ✗ fail · AA-large · AAA
Aa
#ffcc47 on black: 13.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green80.0%
Blue27.8%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow72.2%
Key (black)0.0%

Color previews

#ffcc47 text on a black background

contrast 13.98:1

Card sample

#ffcc47 text on a white background

contrast 1.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcc47

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcc47 in the Color Lab