Skip to content

#f0c01e

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

RGB
240, 192, 30
HSL
46°, 88%, 53%
CMYK
0, 20, 88, 6
Luminance
0.5632

Every format

HEX#f0c01e
RGBrgb(240, 192, 30)
HSLhsl(46, 88%, 53%)
CMYKcmyk(0%, 20%, 88%, 6%)
LABlab(79.8 3.8 77.4)
LCHlch(79.8 77.5 87.2)
OKLCHoklch(0.827 0.164 89.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0c01e on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#f0c01e on black: 12.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green75.3%
Blue11.8%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow87.5%
Key (black)5.9%

Color previews

#f0c01e text on a black background

contrast 12.26:1

Card sample

#f0c01e text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 192, 30, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 192, 30, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0c01e;
background: linear-gradient(135deg, #f0c01e, #94F01E);

Monochromatic scale

Palettes built from #f0c01e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0c01e in the Color Lab