Skip to content

#ccaf33

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

RGB
204, 175, 51
HSL
49°, 60%, 50%
CMYK
0, 14, 75, 20
Luminance
0.4374

Every format

HEX#ccaf33
RGBrgb(204, 175, 51)
HSLhsl(49, 60%, 50%)
CMYKcmyk(0%, 14%, 75%, 20%)
LABlab(72.0 -2.3 63.4)
LCHlch(72.0 63.4 92.1)
OKLCHoklch(0.758 0.140 95.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green68.6%
Blue20.0%

CMYK percentages

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

Color previews

#ccaf33 text on a black background

contrast 9.75:1

Card sample

#ccaf33 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaf33

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf33 in the Color Lab