Skip to content

#ffcf21

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

RGB
255, 207, 33
HSL
47°, 100%, 57%
CMYK
0, 19, 87, 0
Luminance
0.6600

Every format

HEX#ffcf21
RGBrgb(255, 207, 33)
HSLhsl(47, 100%, 57%)
CMYKcmyk(0%, 19%, 87%, 0%)
LABlab(85.0 2.5 81.5)
LCHlch(85.0 81.5 88.2)
OKLCHoklch(0.872 0.172 91.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcf21 on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#ffcf21 on black: 14.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green81.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow87.1%
Key (black)0.0%

Color previews

#ffcf21 text on a black background

contrast 14.20:1

Card sample

#ffcf21 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf21 in the Color Lab