Skip to content

#fcf080

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

RGB
252, 240, 128
HSL
54°, 95%, 75%
CMYK
0, 5, 49, 1
Luminance
0.8457

Every format

HEX#fcf080
RGBrgb(252, 240, 128)
HSLhsl(54, 95%, 75%)
CMYKcmyk(0%, 5%, 49%, 1%)
LABlab(93.7 -10.4 55.1)
LCHlch(93.7 56.1 100.7)
OKLCHoklch(0.942 0.134 103.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcf080 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#fcf080 on black: 17.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green94.1%
Blue50.2%

CMYK percentages

Cyan0.0%
Magenta4.8%
Yellow49.2%
Key (black)1.2%

Color previews

#fcf080 text on a black background

contrast 17.91:1

Card sample

#fcf080 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(252, 240, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 240, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcf080;
background: linear-gradient(135deg, #fcf080, #B5FC80);

Monochromatic scale

Palettes built from #fcf080

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcf080 in the Color Lab