Skip to content

#fff220

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

RGB
255, 242, 32
HSL
57°, 100%, 56%
CMYK
0, 5, 88, 0
Luminance
0.8487

Every format

HEX#fff220
RGBrgb(255, 242, 32)
HSLhsl(57, 100%, 56%)
CMYKcmyk(0%, 5%, 88%, 0%)
LABlab(93.8 -15.0 88.7)
LCHlch(93.8 89.9 99.6)
OKLCHoklch(0.942 0.196 105.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff220 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#fff220 on black: 17.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green94.9%
Blue12.5%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow87.5%
Key (black)0.0%

Color previews

#fff220 text on a black background

contrast 17.97:1

Card sample

#fff220 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff220

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff220 in the Color Lab