Skip to content

#f4cc56

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

RGB
244, 204, 86
HSL
45°, 88%, 65%
CMYK
0, 16, 65, 4
Luminance
0.6309

Every format

HEX#f4cc56
RGBrgb(244, 204, 86)
HSLhsl(45, 88%, 65%)
CMYKcmyk(0%, 16%, 65%, 4%)
LABlab(83.5 1.5 62.2)
LCHlch(83.5 62.2 88.7)
OKLCHoklch(0.858 0.141 90.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f4cc56 on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#f4cc56 on black: 13.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red95.7%
Green80.0%
Blue33.7%

CMYK percentages

Cyan0.0%
Magenta16.4%
Yellow64.8%
Key (black)4.3%

Color previews

#f4cc56 text on a black background

contrast 13.62:1

Card sample

#f4cc56 text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f4cc56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f4cc56 in the Color Lab