Skip to content

#ccba2f

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

RGB
204, 186, 47
HSL
53°, 63%, 49%
CMYK
0, 9, 77, 20
Luminance
0.4816

Every format

HEX#ccba2f
RGBrgb(204, 186, 47)
HSLhsl(53, 63%, 49%)
CMYKcmyk(0%, 9%, 77%, 20%)
LABlab(74.9 -8.2 67.4)
LCHlch(74.9 67.9 96.9)
OKLCHoklch(0.781 0.150 101.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccba2f on white: 1.98:1
AA ✗ fail · AA-large · AAA
Aa
#ccba2f on black: 10.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green72.9%
Blue18.4%

CMYK percentages

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

Color previews

#ccba2f text on a black background

contrast 10.63:1

Card sample

#ccba2f text on a white background

contrast 1.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccba2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccba2f in the Color Lab