Skip to content

#ffff22

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

RGB
255, 255, 34
HSL
60°, 100%, 57%
CMYK
0, 0, 87, 0
Luminance
0.9290

Every format

HEX#ffff22
RGBrgb(255, 255, 34)
HSLhsl(60, 100%, 57%)
CMYKcmyk(0%, 0%, 87%, 0%)
LABlab(97.2 -21.2 91.0)
LCHlch(97.2 93.4 103.1)
OKLCHoklch(0.969 0.206 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffff22 on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#ffff22 on black: 19.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green100.0%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow86.7%
Key (black)0.0%

Color previews

#ffff22 text on a black background

contrast 19.58:1

Card sample

#ffff22 text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffff22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffff22 in the Color Lab