Skip to content

#f0e921

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

RGB
240, 233, 33
HSL
58°, 87%, 54%
CMYK
0, 3, 86, 6
Luminance
0.7691

Every format

HEX#f0e921
RGBrgb(240, 233, 33)
HSLhsl(58, 87%, 54%)
CMYKcmyk(0%, 3%, 86%, 6%)
LABlab(90.3 -16.8 85.2)
LCHlch(90.3 86.8 101.2)
OKLCHoklch(0.910 0.190 107.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0e921 on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#f0e921 on black: 16.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green91.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow86.3%
Key (black)5.9%

Color previews

#f0e921 text on a black background

contrast 16.38:1

Card sample

#f0e921 text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0e921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0e921 in the Color Lab