Skip to content

#ccc45f

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

RGB
204, 196, 95
HSL
56°, 52%, 59%
CMYK
0, 4, 53, 20
Luminance
0.5314

Every format

HEX#ccc45f
RGBrgb(204, 196, 95)
HSLhsl(56, 52%, 59%)
CMYKcmyk(0%, 4%, 53%, 20%)
LABlab(78.0 -10.4 51.0)
LCHlch(78.0 52.0 101.6)
OKLCHoklch(0.806 0.123 104.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc45f on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#ccc45f on black: 11.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green76.9%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta3.9%
Yellow53.4%
Key (black)20.0%

Color previews

#ccc45f text on a black background

contrast 11.63:1

Card sample

#ccc45f text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc45f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc45f in the Color Lab