Skip to content

#ffb40f

a balanced, electric yellow · warm · closest name: orange

RGB
255, 180, 15
HSL
41°, 100%, 53%
CMYK
0, 29, 94, 0
Luminance
0.5394

Every format

HEX#ffb40f
RGBrgb(255, 180, 15)
HSLhsl(41, 100%, 53%)
CMYKcmyk(0%, 29%, 94%, 0%)
LABlab(78.4 16.2 79.7)
LCHlch(78.4 81.3 78.5)
OKLCHoklch(0.820 0.169 78.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffb40f on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#ffb40f on black: 11.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green70.6%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta29.4%
Yellow94.1%
Key (black)0.0%

Color previews

#ffb40f text on a black background

contrast 11.79:1

Card sample

#ffb40f text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 180, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 180, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffb40f;
background: linear-gradient(135deg, #ffb40f, #AAFF0F);

Monochromatic scale

Palettes built from #ffb40f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffb40f in the Color Lab