Skip to content

#ffff2a

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

RGB
255, 255, 42
HSL
60°, 100%, 58%
CMYK
0, 0, 84, 0
Luminance
0.9295

Every format

HEX#ffff2a
RGBrgb(255, 255, 42)
HSLhsl(60, 100%, 58%)
CMYKcmyk(0%, 0%, 84%, 0%)
LABlab(97.2 -21.0 89.5)
LCHlch(97.2 92.0 103.2)
OKLCHoklch(0.969 0.204 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green100.0%
Blue16.5%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow83.5%
Key (black)0.0%

Color previews

#ffff2a text on a black background

contrast 19.59:1

Card sample

#ffff2a text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffff2a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffff2a in the Color Lab