Skip to content

#ccba3f

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

RGB
204, 186, 63
HSL
52°, 58%, 52%
CMYK
0, 9, 69, 20
Luminance
0.4831

Every format

HEX#ccba3f
RGBrgb(204, 186, 63)
HSLhsl(52, 58%, 52%)
CMYKcmyk(0%, 9%, 69%, 20%)
LABlab(75.0 -7.4 61.7)
LCHlch(75.0 62.2 96.9)
OKLCHoklch(0.782 0.140 100.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green72.9%
Blue24.7%

CMYK percentages

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

Color previews

#ccba3f text on a black background

contrast 10.66:1

Card sample

#ccba3f text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccba3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccba3f in the Color Lab