Skip to content

#f0cb49

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

RGB
240, 203, 73
HSL
47°, 85%, 61%
CMYK
0, 15, 70, 6
Luminance
0.6172

Every format

HEX#f0cb49
RGBrgb(240, 203, 73)
HSLhsl(47, 85%, 61%)
CMYKcmyk(0%, 15%, 70%, 6%)
LABlab(82.8 -0.4 66.7)
LCHlch(82.8 66.7 90.4)
OKLCHoklch(0.851 0.149 92.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0cb49 on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#f0cb49 on black: 13.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green79.6%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta15.4%
Yellow69.6%
Key (black)5.9%

Color previews

#f0cb49 text on a black background

contrast 13.34:1

Card sample

#f0cb49 text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0cb49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0cb49 in the Color Lab