Skip to content

#ffec40

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

RGB
255, 236, 64
HSL
54°, 100%, 63%
CMYK
0, 8, 75, 0
Luminance
0.8162

Every format

HEX#ffec40
RGBrgb(255, 236, 64)
HSLhsl(54, 100%, 63%)
CMYKcmyk(0%, 8%, 75%, 0%)
LABlab(92.4 -11.1 79.6)
LCHlch(92.4 80.4 98.0)
OKLCHoklch(0.931 0.179 102.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffec40 on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#ffec40 on black: 17.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green92.5%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow74.9%
Key (black)0.0%

Color previews

#ffec40 text on a black background

contrast 17.32:1

Card sample

#ffec40 text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 236, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 236, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffec40;
background: linear-gradient(135deg, #ffec40, #93FF40);

Monochromatic scale

Palettes built from #ffec40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec40 in the Color Lab