Skip to content

#ccc147

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

RGB
204, 193, 71
HSL
55°, 57%, 54%
CMYK
0, 5, 65, 20
Luminance
0.5143

Every format

HEX#ccc147
RGBrgb(204, 193, 71)
HSLhsl(55, 57%, 54%)
CMYKcmyk(0%, 5%, 65%, 20%)
LABlab(76.9 -10.6 60.5)
LCHlch(76.9 61.4 99.9)
OKLCHoklch(0.798 0.141 104.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc147 on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#ccc147 on black: 11.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green75.7%
Blue27.8%

CMYK percentages

Cyan0.0%
Magenta5.4%
Yellow65.2%
Key (black)20.0%

Color previews

#ccc147 text on a black background

contrast 11.29:1

Card sample

#ccc147 text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 193, 71, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 193, 71, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc147;
background: linear-gradient(135deg, #ccc147, #7ECC47);

Monochromatic scale

Palettes built from #ccc147

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc147 in the Color Lab