Skip to content

#ccc82f

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

RGB
204, 200, 47
HSL
59°, 63%, 49%
CMYK
0, 2, 77, 20
Luminance
0.5435

Every format

HEX#ccc82f
RGBrgb(204, 200, 47)
HSLhsl(59, 63%, 49%)
CMYKcmyk(0%, 2%, 77%, 20%)
LABlab(78.7 -15.3 70.8)
LCHlch(78.7 72.4 102.2)
OKLCHoklch(0.811 0.162 108.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc82f on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#ccc82f on black: 11.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.4%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow77.0%
Key (black)20.0%

Color previews

#ccc82f text on a black background

contrast 11.87:1

Card sample

#ccc82f text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 200, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 200, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc82f;
background: linear-gradient(135deg, #ccc82f, #67CC2F);

Monochromatic scale

Palettes built from #ccc82f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc82f in the Color Lab