Skip to content

#f0f821

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

RGB
240, 248, 33
HSL
62°, 94%, 55%
CMYK
3, 0, 87, 3
Luminance
0.8577

Every format

HEX#f0f821
RGBrgb(240, 248, 33)
HSLhsl(62, 94%, 55%)
CMYKcmyk(3%, 0%, 87%, 3%)
LABlab(94.2 -24.0 88.3)
LCHlch(94.2 91.5 105.2)
OKLCHoklch(0.942 0.203 112.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0f821 on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#f0f821 on black: 18.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green97.3%
Blue12.9%

CMYK percentages

Cyan3.2%
Magenta0.0%
Yellow86.7%
Key (black)2.7%

Color previews

#f0f821 text on a black background

contrast 18.15:1

Card sample

#f0f821 text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f821 in the Color Lab