Skip to content

#ffc40f

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

RGB
255, 196, 15
HSL
45°, 100%, 53%
CMYK
0, 23, 94, 0
Luminance
0.6077

Every format

HEX#ffc40f
RGBrgb(255, 196, 15)
HSLhsl(45, 100%, 53%)
CMYKcmyk(0%, 23%, 94%, 0%)
LABlab(82.3 7.9 82.4)
LCHlch(82.3 82.8 84.5)
OKLCHoklch(0.850 0.172 86.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffc40f on white: 1.60:1
AA ✗ fail · AA-large · AAA
Aa
#ffc40f on black: 13.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green76.9%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta23.1%
Yellow94.1%
Key (black)0.0%

Color previews

#ffc40f text on a black background

contrast 13.15:1

Card sample

#ffc40f text on a white background

contrast 1.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffc40f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffc40f in the Color Lab