Skip to content

#ccba39

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

RGB
204, 186, 57
HSL
53°, 59%, 51%
CMYK
0, 9, 72, 20
Luminance
0.4825

Every format

HEX#ccba39
RGBrgb(204, 186, 57)
HSLhsl(53, 59%, 51%)
CMYKcmyk(0%, 9%, 72%, 20%)
LABlab(75.0 -7.7 64.0)
LCHlch(75.0 64.5 96.9)
OKLCHoklch(0.782 0.144 101.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green72.9%
Blue22.4%

CMYK percentages

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

Color previews

#ccba39 text on a black background

contrast 10.65:1

Card sample

#ccba39 text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccba39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccba39 in the Color Lab