Skip to content

#ffe52c

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

RGB
255, 229, 44
HSL
53°, 100%, 59%
CMYK
0, 10, 83, 0
Luminance
0.7748

Every format

HEX#ffe52c
RGBrgb(255, 229, 44)
HSLhsl(53, 100%, 59%)
CMYKcmyk(0%, 10%, 83%, 0%)
LABlab(90.5 -8.3 83.6)
LCHlch(90.5 84.0 95.7)
OKLCHoklch(0.916 0.182 100.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffe52c on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#ffe52c on black: 16.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green89.8%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta10.2%
Yellow82.7%
Key (black)0.0%

Color previews

#ffe52c text on a black background

contrast 16.50:1

Card sample

#ffe52c text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffe52c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffe52c in the Color Lab