Skip to content

#ccc975

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

RGB
204, 201, 117
HSL
58°, 46%, 63%
CMYK
0, 2, 43, 20
Luminance
0.5590

Every format

HEX#ccc975
RGBrgb(204, 201, 117)
HSLhsl(58, 46%, 63%)
CMYKcmyk(0%, 2%, 43%, 20%)
LABlab(79.5 -10.9 42.2)
LCHlch(79.5 43.6 104.5)
OKLCHoklch(0.820 0.106 106.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc975 on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#ccc975 on black: 12.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.8%
Blue45.9%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow42.6%
Key (black)20.0%

Color previews

#ccc975 text on a black background

contrast 12.18:1

Card sample

#ccc975 text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 201, 117, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 201, 117, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc975;
background: linear-gradient(135deg, #ccc975, #95CC75);

Monochromatic scale

Palettes built from #ccc975

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc975 in the Color Lab