Skip to content

#ffec2d

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

RGB
255, 236, 45
HSL
55°, 100%, 59%
CMYK
0, 8, 82, 0
Luminance
0.8144

Every format

HEX#ffec2d
RGBrgb(255, 236, 45)
HSLhsl(55, 100%, 59%)
CMYKcmyk(0%, 8%, 82%, 0%)
LABlab(92.3 -11.8 84.8)
LCHlch(92.3 85.6 97.9)
OKLCHoklch(0.930 0.187 103.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.5%
Blue17.6%

CMYK percentages

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

Color previews

#ffec2d text on a black background

contrast 17.29:1

Card sample

#ffec2d text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffec2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec2d in the Color Lab