Skip to content

#ffc22f

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

RGB
255, 194, 47
HSL
42°, 100%, 59%
CMYK
0, 24, 82, 0
Luminance
0.6005

Every format

HEX#ffc22f
RGBrgb(255, 194, 47)
HSLhsl(42, 100%, 59%)
CMYKcmyk(0%, 24%, 82%, 0%)
LABlab(81.9 9.6 75.4)
LCHlch(81.9 76.0 82.8)
OKLCHoklch(0.847 0.163 83.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green76.1%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta23.9%
Yellow81.6%
Key (black)0.0%

Color previews

#ffc22f text on a black background

contrast 13.01:1

Card sample

#ffc22f text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffc22f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffc22f in the Color Lab