Skip to content

#ccbc2f

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

RGB
204, 188, 47
HSL
54°, 63%, 49%
CMYK
0, 8, 77, 20
Luminance
0.4901

Every format

HEX#ccbc2f
RGBrgb(204, 188, 47)
HSLhsl(54, 63%, 49%)
CMYKcmyk(0%, 8%, 77%, 20%)
LABlab(75.5 -9.2 67.9)
LCHlch(75.5 68.5 97.7)
OKLCHoklch(0.785 0.152 102.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccbc2f on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#ccbc2f on black: 10.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green73.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow77.0%
Key (black)20.0%

Color previews

#ccbc2f text on a black background

contrast 10.80:1

Card sample

#ccbc2f text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccbc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccbc2f in the Color Lab