Skip to content

#f0db2c

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

RGB
240, 219, 44
HSL
54°, 87%, 56%
CMYK
0, 9, 82, 6
Luminance
0.6937

Every format

HEX#f0db2c
RGBrgb(240, 219, 44)
HSLhsl(54, 87%, 56%)
CMYKcmyk(0%, 9%, 82%, 6%)
LABlab(86.7 -9.6 79.8)
LCHlch(86.7 80.4 96.9)
OKLCHoklch(0.882 0.175 101.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0db2c on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#f0db2c on black: 14.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green85.9%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta8.8%
Yellow81.7%
Key (black)5.9%

Color previews

#f0db2c text on a black background

contrast 14.87:1

Card sample

#f0db2c text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 219, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 219, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0db2c;
background: linear-gradient(135deg, #f0db2c, #82F02C);

Monochromatic scale

Palettes built from #f0db2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0db2c in the Color Lab