Skip to content

#ccaf53

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

RGB
204, 175, 83
HSL
46°, 54%, 56%
CMYK
0, 14, 59, 20
Luminance
0.4412

Every format

HEX#ccaf53
RGBrgb(204, 175, 83)
HSLhsl(46, 54%, 56%)
CMYKcmyk(0%, 14%, 59%, 20%)
LABlab(72.3 -0.4 50.1)
LCHlch(72.3 50.1 90.5)
OKLCHoklch(0.761 0.116 92.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccaf53 on white: 2.14:1
AA ✗ fail · AA-large · AAA
Aa
#ccaf53 on black: 9.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue32.5%

CMYK percentages

Cyan0.0%
Magenta14.2%
Yellow59.3%
Key (black)20.0%

Color previews

#ccaf53 text on a black background

contrast 9.82:1

Card sample

#ccaf53 text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 175, 83, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 175, 83, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccaf53;
background: linear-gradient(135deg, #ccaf53, #98CC53);

Monochromatic scale

Palettes built from #ccaf53

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf53 in the Color Lab