Skip to content

#ffec4f

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

RGB
255, 236, 79
HSL
54°, 100%, 66%
CMYK
0, 8, 69, 0
Luminance
0.8182

Every format

HEX#ffec4f
RGBrgb(255, 236, 79)
HSLhsl(54, 100%, 66%)
CMYKcmyk(0%, 8%, 69%, 0%)
LABlab(92.5 -10.5 74.6)
LCHlch(92.5 75.3 98.0)
OKLCHoklch(0.932 0.170 102.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.5%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow69.0%
Key (black)0.0%

Color previews

#ffec4f text on a black background

contrast 17.36:1

Card sample

#ffec4f text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffec4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec4f in the Color Lab