Skip to content

#ffd40f

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

RGB
255, 212, 15
HSL
49°, 100%, 53%
CMYK
0, 17, 94, 0
Luminance
0.6838

Every format

HEX#ffd40f
RGBrgb(255, 212, 15)
HSLhsl(49, 100%, 53%)
CMYKcmyk(0%, 17%, 94%, 0%)
LABlab(86.2 -0.3 85.3)
LCHlch(86.2 85.3 90.2)
OKLCHoklch(0.881 0.179 93.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffd40f on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#ffd40f on black: 14.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green83.1%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta16.9%
Yellow94.1%
Key (black)0.0%

Color previews

#ffd40f text on a black background

contrast 14.68:1

Card sample

#ffd40f text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffd40f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffd40f in the Color Lab