Skip to content

#f0c608

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

RGB
240, 198, 8
HSL
49°, 94%, 49%
CMYK
0, 18, 97, 6
Luminance
0.5893

Every format

HEX#f0c608
RGBrgb(240, 198, 8)
HSLhsl(49, 94%, 49%)
CMYKcmyk(0%, 18%, 97%, 6%)
LABlab(81.3 0.4 81.7)
LCHlch(81.3 81.7 89.7)
OKLCHoklch(0.839 0.171 93.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0c608 on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#f0c608 on black: 12.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green77.6%
Blue3.1%

CMYK percentages

Cyan0.0%
Magenta17.5%
Yellow96.7%
Key (black)5.9%

Color previews

#f0c608 text on a black background

contrast 12.79:1

Card sample

#f0c608 text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0c608

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0c608 in the Color Lab