Skip to content

#f0cd3d

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

RGB
240, 205, 61
HSL
48°, 86%, 59%
CMYK
0, 15, 75, 6
Luminance
0.6252

Every format

HEX#f0cd3d
RGBrgb(240, 205, 61)
HSLhsl(48, 86%, 59%)
CMYKcmyk(0%, 15%, 75%, 6%)
LABlab(83.2 -2.0 71.5)
LCHlch(83.2 71.6 91.6)
OKLCHoklch(0.855 0.158 94.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0cd3d on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#f0cd3d on black: 13.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green80.4%
Blue23.9%

CMYK percentages

Cyan0.0%
Magenta14.6%
Yellow74.6%
Key (black)5.9%

Color previews

#f0cd3d text on a black background

contrast 13.50:1

Card sample

#f0cd3d text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 205, 61, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 205, 61, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0cd3d;
background: linear-gradient(135deg, #f0cd3d, #9CF03D);

Monochromatic scale

Palettes built from #f0cd3d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0cd3d in the Color Lab