Skip to content

#ffb40c

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

RGB
255, 180, 12
HSL
42°, 100%, 52%
CMYK
0, 29, 95, 0
Luminance
0.5393

Every format

HEX#ffb40c
RGBrgb(255, 180, 12)
HSLhsl(42, 100%, 52%)
CMYKcmyk(0%, 29%, 95%, 0%)
LABlab(78.4 16.2 80.0)
LCHlch(78.4 81.6 78.6)
OKLCHoklch(0.820 0.169 78.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green70.6%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta29.4%
Yellow95.3%
Key (black)0.0%

Color previews

#ffb40c text on a black background

contrast 11.79:1

Card sample

#ffb40c text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffb40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffb40c in the Color Lab