Skip to content

#f3d40f

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

RGB
243, 212, 15
HSL
52°, 91%, 51%
CMYK
0, 13, 94, 5
Luminance
0.6618

Every format

HEX#f3d40f
RGBrgb(243, 212, 15)
HSLhsl(52, 91%, 51%)
CMYKcmyk(0%, 13%, 94%, 5%)
LABlab(85.1 -5.4 84.0)
LCHlch(85.1 84.1 93.7)
OKLCHoklch(0.870 0.178 98.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f3d40f on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#f3d40f on black: 14.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red95.3%
Green83.1%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta12.8%
Yellow93.8%
Key (black)4.7%

Color previews

#f3d40f text on a black background

contrast 14.24:1

Card sample

#f3d40f text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(243, 212, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(243, 212, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f3d40f;
background: linear-gradient(135deg, #f3d40f, #7AF30F);

Monochromatic scale

Palettes built from #f3d40f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f3d40f in the Color Lab