Skip to content

#ffed2f

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

RGB
255, 237, 47
HSL
55°, 100%, 59%
CMYK
0, 7, 82, 0
Luminance
0.8203

Every format

HEX#ffed2f
RGBrgb(255, 237, 47)
HSLhsl(55, 100%, 59%)
CMYKcmyk(0%, 7%, 82%, 0%)
LABlab(92.6 -12.2 84.6)
LCHlch(92.6 85.4 98.2)
OKLCHoklch(0.932 0.187 103.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta7.1%
Yellow81.6%
Key (black)0.0%

Color previews

#ffed2f text on a black background

contrast 17.41:1

Card sample

#ffed2f text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffed2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffed2f in the Color Lab