Skip to content

#fff040

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

RGB
255, 240, 64
HSL
55°, 100%, 63%
CMYK
0, 6, 75, 0
Luminance
0.8395

Every format

HEX#fff040
RGBrgb(255, 240, 64)
HSLhsl(55, 100%, 63%)
CMYKcmyk(0%, 6%, 75%, 0%)
LABlab(93.4 -13.1 80.6)
LCHlch(93.4 81.6 99.2)
OKLCHoklch(0.939 0.182 104.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff040 on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#fff040 on black: 17.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green94.1%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta5.9%
Yellow74.9%
Key (black)0.0%

Color previews

#fff040 text on a black background

contrast 17.79:1

Card sample

#fff040 text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff040 in the Color Lab