Skip to content

#ffcc30

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

RGB
255, 204, 48
HSL
45°, 100%, 59%
CMYK
0, 20, 81, 0
Luminance
0.6466

Every format

HEX#ffcc30
RGBrgb(255, 204, 48)
HSLhsl(45, 100%, 59%)
CMYKcmyk(0%, 20%, 81%, 0%)
LABlab(84.3 4.4 77.2)
LCHlch(84.3 77.3 86.7)
OKLCHoklch(0.866 0.166 88.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcc30 on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#ffcc30 on black: 13.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green80.0%
Blue18.8%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow81.2%
Key (black)0.0%

Color previews

#ffcc30 text on a black background

contrast 13.93:1

Card sample

#ffcc30 text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcc30

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcc30 in the Color Lab