Skip to content

#ffea2c

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

RGB
255, 234, 44
HSL
54°, 100%, 59%
CMYK
0, 8, 83, 0
Luminance
0.8029

Every format

HEX#ffea2c
RGBrgb(255, 234, 44)
HSLhsl(54, 100%, 59%)
CMYKcmyk(0%, 8%, 83%, 0%)
LABlab(91.8 -10.8 84.6)
LCHlch(91.8 85.3 97.3)
OKLCHoklch(0.926 0.186 102.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffea2c on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#ffea2c on black: 17.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green91.8%
Blue17.3%

CMYK percentages

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

Color previews

#ffea2c text on a black background

contrast 17.06:1

Card sample

#ffea2c text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffea2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffea2c in the Color Lab