Skip to content

#f9cc56

a light, electric yellow · warm · closest name: khaki

RGB
249, 204, 86
HSL
43°, 93%, 66%
CMYK
0, 18, 66, 2
Luminance
0.6400

Every format

HEX#f9cc56
RGBrgb(249, 204, 86)
HSLhsl(43, 93%, 66%)
CMYKcmyk(0%, 18%, 66%, 2%)
LABlab(84.0 3.5 62.9)
LCHlch(84.0 63.0 86.8)
OKLCHoklch(0.863 0.143 88.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9cc56 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#f9cc56 on black: 13.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green80.0%
Blue33.7%

CMYK percentages

Cyan0.0%
Magenta18.1%
Yellow65.5%
Key (black)2.4%

Color previews

#f9cc56 text on a black background

contrast 13.80:1

Card sample

#f9cc56 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9cc56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9cc56 in the Color Lab