Skip to content

#ffea21

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

RGB
255, 234, 33
HSL
54°, 100%, 57%
CMYK
0, 8, 87, 0
Luminance
0.8022

Every format

HEX#ffea21
RGBrgb(255, 234, 33)
HSLhsl(54, 100%, 57%)
CMYKcmyk(0%, 8%, 87%, 0%)
LABlab(91.8 -11.0 86.9)
LCHlch(91.8 87.6 97.2)
OKLCHoklch(0.925 0.189 102.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffea21 on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#ffea21 on black: 17.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green91.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta8.2%
Yellow87.1%
Key (black)0.0%

Color previews

#ffea21 text on a black background

contrast 17.04:1

Card sample

#ffea21 text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 234, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 234, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffea21;
background: linear-gradient(135deg, #ffea21, #80FF21);

Monochromatic scale

Palettes built from #ffea21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffea21 in the Color Lab