Skip to content

#cccb2d

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

RGB
204, 203, 45
HSL
60°, 64%, 49%
CMYK
0, 1, 78, 20
Luminance
0.5574

Every format

HEX#cccb2d
RGBrgb(204, 203, 45)
HSLhsl(60, 64%, 49%)
CMYKcmyk(0%, 1%, 78%, 20%)
LABlab(79.5 -16.9 72.1)
LCHlch(79.5 74.0 103.2)
OKLCHoklch(0.817 0.166 109.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cccb2d on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#cccb2d on black: 12.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green79.6%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta0.5%
Yellow77.9%
Key (black)20.0%

Color previews

#cccb2d text on a black background

contrast 12.15:1

Card sample

#cccb2d text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 203, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 203, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cccb2d;
background: linear-gradient(135deg, #cccb2d, #63CC2D);

Monochromatic scale

Palettes built from #cccb2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cccb2d in the Color Lab