Skip to content

#ccba7f

a balanced, soft yellow · cool · closest name: tan

RGB
204, 186, 127
HSL
46°, 43%, 65%
CMYK
0, 9, 38, 20
Luminance
0.4949

Every format

HEX#ccba7f
RGBrgb(204, 186, 127)
HSLhsl(46, 43%, 65%)
CMYKcmyk(0%, 9%, 38%, 20%)
LABlab(75.8 -2.1 32.3)
LCHlch(75.8 32.3 93.7)
OKLCHoklch(0.790 0.080 93.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccba7f on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#ccba7f on black: 10.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green72.9%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta8.8%
Yellow37.7%
Key (black)20.0%

Color previews

#ccba7f text on a black background

contrast 10.90:1

Card sample

#ccba7f text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccba7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccba7f in the Color Lab