Skip to content

#ccaf41

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

RGB
204, 175, 65
HSL
48°, 58%, 53%
CMYK
0, 14, 68, 20
Luminance
0.4388

Every format

HEX#ccaf41
RGBrgb(204, 175, 65)
HSLhsl(48, 58%, 53%)
CMYKcmyk(0%, 14%, 68%, 20%)
LABlab(72.2 -1.6 58.0)
LCHlch(72.2 58.0 91.6)
OKLCHoklch(0.759 0.131 94.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccaf41 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#ccaf41 on black: 9.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue25.5%

CMYK percentages

Cyan0.0%
Magenta14.2%
Yellow68.1%
Key (black)20.0%

Color previews

#ccaf41 text on a black background

contrast 9.78:1

Card sample

#ccaf41 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaf41

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf41 in the Color Lab