Skip to content

#ccba41

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

RGB
204, 186, 65
HSL
52°, 58%, 53%
CMYK
0, 9, 68, 20
Luminance
0.4834

Every format

HEX#ccba41
RGBrgb(204, 186, 65)
HSLhsl(52, 58%, 53%)
CMYKcmyk(0%, 9%, 68%, 20%)
LABlab(75.0 -7.3 61.0)
LCHlch(75.0 61.4 96.9)
OKLCHoklch(0.782 0.139 100.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccba41 on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#ccba41 on black: 10.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green72.9%
Blue25.5%

CMYK percentages

Cyan0.0%
Magenta8.8%
Yellow68.1%
Key (black)20.0%

Color previews

#ccba41 text on a black background

contrast 10.67:1

Card sample

#ccba41 text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccba41

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccba41 in the Color Lab