Skip to content

#ffd02f

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

RGB
255, 208, 47
HSL
46°, 100%, 59%
CMYK
0, 18, 82, 0
Luminance
0.6658

Every format

HEX#ffd02f
RGBrgb(255, 208, 47)
HSLhsl(46, 100%, 59%)
CMYKcmyk(0%, 18%, 82%, 0%)
LABlab(85.3 2.4 78.3)
LCHlch(85.3 78.4 88.3)
OKLCHoklch(0.874 0.168 90.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffd02f on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#ffd02f on black: 14.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green81.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta18.4%
Yellow81.6%
Key (black)0.0%

Color previews

#ffd02f text on a black background

contrast 14.32:1

Card sample

#ffd02f text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffd02f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffd02f in the Color Lab