Skip to content

#ccc770

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

RGB
204, 199, 112
HSL
57°, 47%, 62%
CMYK
0, 3, 45, 20
Luminance
0.5485

Every format

HEX#ccc770
RGBrgb(204, 199, 112)
HSLhsl(57, 47%, 62%)
CMYKcmyk(0%, 3%, 45%, 20%)
LABlab(79.0 -10.4 44.0)
LCHlch(79.0 45.2 103.4)
OKLCHoklch(0.815 0.110 105.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc770 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#ccc770 on black: 11.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.0%
Blue43.9%

CMYK percentages

Cyan0.0%
Magenta2.5%
Yellow45.1%
Key (black)20.0%

Color previews

#ccc770 text on a black background

contrast 11.97:1

Card sample

#ccc770 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 199, 112, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 199, 112, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc770;
background: linear-gradient(135deg, #ccc770, #94CC70);

Monochromatic scale

Palettes built from #ccc770

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc770 in the Color Lab