Skip to content

#ccaf4b

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

RGB
204, 175, 75
HSL
47°, 56%, 55%
CMYK
0, 14, 63, 20
Luminance
0.4401

Every format

HEX#ccaf4b
RGBrgb(204, 175, 75)
HSLhsl(47, 56%, 55%)
CMYKcmyk(0%, 14%, 63%, 20%)
LABlab(72.2 -1.0 53.7)
LCHlch(72.2 53.8 91.0)
OKLCHoklch(0.760 0.123 93.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green68.6%
Blue29.4%

CMYK percentages

Cyan0.0%
Magenta14.2%
Yellow63.2%
Key (black)20.0%

Color previews

#ccaf4b text on a black background

contrast 9.80:1

Card sample

#ccaf4b text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaf4b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf4b in the Color Lab