Skip to content

#f0db49

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

RGB
240, 219, 73
HSL
53°, 85%, 61%
CMYK
0, 9, 70, 6
Luminance
0.6967

Every format

HEX#f0db49
RGBrgb(240, 219, 73)
HSLhsl(53, 85%, 61%)
CMYKcmyk(0%, 9%, 70%, 6%)
LABlab(86.8 -8.5 70.8)
LCHlch(86.8 71.3 96.9)
OKLCHoklch(0.884 0.160 100.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green85.9%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta8.8%
Yellow69.6%
Key (black)5.9%

Color previews

#f0db49 text on a black background

contrast 14.93:1

Card sample

#f0db49 text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0db49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0db49 in the Color Lab