Skip to content

#ffc021

a balanced, electric yellow · warm · closest name: orange

RGB
255, 192, 33
HSL
43°, 100%, 57%
CMYK
0, 25, 87, 0
Luminance
0.5907

Every format

HEX#ffc021
RGBrgb(255, 192, 33)
HSLhsl(43, 100%, 57%)
CMYKcmyk(0%, 25%, 87%, 0%)
LABlab(81.3 10.3 78.6)
LCHlch(81.3 79.3 82.6)
OKLCHoklch(0.843 0.167 83.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffc021 on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#ffc021 on black: 12.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green75.3%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta24.7%
Yellow87.1%
Key (black)0.0%

Color previews

#ffc021 text on a black background

contrast 12.81:1

Card sample

#ffc021 text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffc021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffc021 in the Color Lab