Skip to content

#ffc72c

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

RGB
255, 199, 44
HSL
44°, 100%, 59%
CMYK
0, 22, 83, 0
Luminance
0.6229

Every format

HEX#ffc72c
RGBrgb(255, 199, 44)
HSLhsl(44, 100%, 59%)
CMYKcmyk(0%, 22%, 83%, 0%)
LABlab(83.1 6.9 77.3)
LCHlch(83.1 77.6 84.9)
OKLCHoklch(0.857 0.166 86.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffc72c on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#ffc72c on black: 13.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green78.0%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta22.0%
Yellow82.7%
Key (black)0.0%

Color previews

#ffc72c text on a black background

contrast 13.46:1

Card sample

#ffc72c text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffc72c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffc72c in the Color Lab