Skip to content

#f0c430

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

RGB
240, 196, 48
HSL
46°, 87%, 57%
CMYK
0, 18, 80, 6
Luminance
0.5822

Every format

HEX#f0c430
RGBrgb(240, 196, 48)
HSLhsl(46, 87%, 57%)
CMYKcmyk(0%, 18%, 80%, 6%)
LABlab(80.9 2.2 73.7)
LCHlch(80.9 73.7 88.3)
OKLCHoklch(0.836 0.159 90.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0c430 on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#f0c430 on black: 12.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green76.9%
Blue18.8%

CMYK percentages

Cyan0.0%
Magenta18.3%
Yellow80.0%
Key (black)5.9%

Color previews

#f0c430 text on a black background

contrast 12.64:1

Card sample

#f0c430 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 196, 48, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 196, 48, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0c430;
background: linear-gradient(135deg, #f0c430, #9CF030);

Monochromatic scale

Palettes built from #f0c430

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0c430 in the Color Lab