Skip to content

#ffcc0f

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

RGB
255, 204, 15
HSL
47°, 100%, 53%
CMYK
0, 20, 94, 0
Luminance
0.6448

Every format

HEX#ffcc0f
RGBrgb(255, 204, 15)
HSLhsl(47, 100%, 53%)
CMYKcmyk(0%, 20%, 94%, 0%)
LABlab(84.2 3.8 83.8)
LCHlch(84.2 83.9 87.4)
OKLCHoklch(0.865 0.175 90.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green80.0%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow94.1%
Key (black)0.0%

Color previews

#ffcc0f text on a black background

contrast 13.90:1

Card sample

#ffcc0f text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcc0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcc0f in the Color Lab