Skip to content

#ccc34f

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

RGB
204, 195, 79
HSL
56°, 55%, 56%
CMYK
0, 4, 61, 20
Luminance
0.5243

Every format

HEX#ccc34f
RGBrgb(204, 195, 79)
HSLhsl(56, 55%, 56%)
CMYKcmyk(0%, 4%, 61%, 20%)
LABlab(77.5 -11.1 57.8)
LCHlch(77.5 58.8 100.9)
OKLCHoklch(0.802 0.137 104.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc34f on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#ccc34f on black: 11.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green76.5%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta4.4%
Yellow61.3%
Key (black)20.0%

Color previews

#ccc34f text on a black background

contrast 11.49:1

Card sample

#ccc34f text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 195, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 195, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc34f;
background: linear-gradient(135deg, #ccc34f, #82CC4F);

Monochromatic scale

Palettes built from #ccc34f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc34f in the Color Lab