Skip to content

#ffc721

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

RGB
255, 199, 33
HSL
45°, 100%, 57%
CMYK
0, 22, 87, 0
Luminance
0.6222

Every format

HEX#ffc721
RGBrgb(255, 199, 33)
HSLhsl(45, 100%, 57%)
CMYKcmyk(0%, 22%, 87%, 0%)
LABlab(83.0 6.6 80.0)
LCHlch(83.0 80.2 85.3)
OKLCHoklch(0.856 0.169 87.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green78.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta22.0%
Yellow87.1%
Key (black)0.0%

Color previews

#ffc721 text on a black background

contrast 13.44:1

Card sample

#ffc721 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffc721

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffc721 in the Color Lab