Skip to content

#ccc157

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

RGB
204, 193, 87
HSL
54°, 53%, 57%
CMYK
0, 5, 57, 20
Luminance
0.5167

Every format

HEX#ccc157
RGBrgb(204, 193, 87)
HSLhsl(54, 53%, 57%)
CMYKcmyk(0%, 5%, 57%, 20%)
LABlab(77.1 -9.5 53.7)
LCHlch(77.1 54.5 100.1)
OKLCHoklch(0.799 0.128 103.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc157 on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#ccc157 on black: 11.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green75.7%
Blue34.1%

CMYK percentages

Cyan0.0%
Magenta5.4%
Yellow57.4%
Key (black)20.0%

Color previews

#ccc157 text on a black background

contrast 11.33:1

Card sample

#ccc157 text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc157

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc157 in the Color Lab