Skip to content

#ffc22c

a balanced, electric yellow · warm · closest name: orange

RGB
255, 194, 44
HSL
43°, 100%, 59%
CMYK
0, 24, 83, 0
Luminance
0.6003

Every format

HEX#ffc22c
RGBrgb(255, 194, 44)
HSLhsl(43, 100%, 59%)
CMYKcmyk(0%, 24%, 83%, 0%)
LABlab(81.8 9.5 76.3)
LCHlch(81.8 76.8 82.9)
OKLCHoklch(0.847 0.164 83.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffc22c on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#ffc22c on black: 13.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green76.1%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta23.9%
Yellow82.7%
Key (black)0.0%

Color previews

#ffc22c text on a black background

contrast 13.01:1

Card sample

#ffc22c text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffc22c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffc22c in the Color Lab