Skip to content

#f0db39

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

RGB
240, 219, 57
HSL
53°, 86%, 58%
CMYK
0, 9, 76, 6
Luminance
0.6948

Every format

HEX#f0db39
RGBrgb(240, 219, 57)
HSLhsl(53, 86%, 58%)
CMYKcmyk(0%, 9%, 76%, 6%)
LABlab(86.7 -9.2 76.2)
LCHlch(86.7 76.7 96.9)
OKLCHoklch(0.883 0.170 101.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green85.9%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta8.8%
Yellow76.3%
Key (black)5.9%

Color previews

#f0db39 text on a black background

contrast 14.90:1

Card sample

#f0db39 text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0db39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0db39 in the Color Lab