Skip to content

#f9b821

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

RGB
249, 184, 33
HSL
42°, 95%, 55%
CMYK
0, 26, 87, 2
Luminance
0.5453

Every format

HEX#f9b821
RGBrgb(249, 184, 33)
HSLhsl(42, 95%, 55%)
CMYKcmyk(0%, 26%, 87%, 2%)
LABlab(78.8 11.9 76.3)
LCHlch(78.8 77.2 81.2)
OKLCHoklch(0.821 0.163 81.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9b821 on white: 1.76:1
AA ✗ fail · AA-large · AAA
Aa
#f9b821 on black: 11.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green72.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta26.1%
Yellow86.7%
Key (black)2.4%

Color previews

#f9b821 text on a black background

contrast 11.91:1

Card sample

#f9b821 text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9b821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9b821 in the Color Lab