Skip to content

#fff021

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

RGB
255, 240, 33
HSL
56°, 100%, 57%
CMYK
0, 6, 87, 0
Luminance
0.8369

Every format

HEX#fff021
RGBrgb(255, 240, 33)
HSLhsl(56, 100%, 57%)
CMYKcmyk(0%, 6%, 87%, 0%)
LABlab(93.3 -14.0 88.1)
LCHlch(93.3 89.2 99.0)
OKLCHoklch(0.938 0.194 104.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff021 on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#fff021 on black: 17.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green94.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta5.9%
Yellow87.1%
Key (black)0.0%

Color previews

#fff021 text on a black background

contrast 17.74:1

Card sample

#fff021 text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff021 in the Color Lab