Skip to content

#ffec2c

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

RGB
255, 236, 44
HSL
55°, 100%, 59%
CMYK
0, 8, 83, 0
Luminance
0.8143

Every format

HEX#ffec2c
RGBrgb(255, 236, 44)
HSLhsl(55, 100%, 59%)
CMYKcmyk(0%, 8%, 83%, 0%)
LABlab(92.3 -11.8 85.0)
LCHlch(92.3 85.9 97.9)
OKLCHoklch(0.930 0.187 103.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.5%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow82.7%
Key (black)0.0%

Color previews

#ffec2c text on a black background

contrast 17.29:1

Card sample

#ffec2c text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffec2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec2c in the Color Lab