Skip to content

#ffec22

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

RGB
255, 236, 34
HSL
55°, 100%, 57%
CMYK
0, 8, 87, 0
Luminance
0.8137

Every format

HEX#ffec22
RGBrgb(255, 236, 34)
HSLhsl(55, 100%, 57%)
CMYKcmyk(0%, 8%, 87%, 0%)
LABlab(92.3 -12.0 87.1)
LCHlch(92.3 87.9 97.8)
OKLCHoklch(0.929 0.190 103.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffec22 on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#ffec22 on black: 17.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green92.5%
Blue13.3%

CMYK percentages

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

Color previews

#ffec22 text on a black background

contrast 17.27:1

Card sample

#ffec22 text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffec22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec22 in the Color Lab