Skip to content

#ffc040

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

RGB
255, 192, 64
HSL
40°, 100%, 63%
CMYK
0, 25, 75, 0
Luminance
0.5933

Every format

HEX#ffc040
RGBrgb(255, 192, 64)
HSLhsl(40, 100%, 63%)
CMYKcmyk(0%, 25%, 75%, 0%)
LABlab(81.5 11.2 69.4)
LCHlch(81.5 70.3 80.8)
OKLCHoklch(0.844 0.154 81.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffc040 on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#ffc040 on black: 12.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green75.3%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta24.7%
Yellow74.9%
Key (black)0.0%

Color previews

#ffc040 text on a black background

contrast 12.87:1

Card sample

#ffc040 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffc040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffc040 in the Color Lab