Skip to content

#cfb147

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

RGB
207, 177, 71
HSL
47°, 59%, 55%
CMYK
0, 15, 66, 19
Luminance
0.4516

Every format

HEX#cfb147
RGBrgb(207, 177, 71)
HSLhsl(47, 59%, 55%)
CMYKcmyk(0%, 15%, 66%, 19%)
LABlab(73.0 -1.0 56.4)
LCHlch(73.0 56.4 91.0)
OKLCHoklch(0.767 0.128 93.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfb147 on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#cfb147 on black: 10.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green69.4%
Blue27.8%

CMYK percentages

Cyan0.0%
Magenta14.5%
Yellow65.7%
Key (black)18.8%

Color previews

#cfb147 text on a black background

contrast 10.03:1

Card sample

#cfb147 text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 177, 71, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 177, 71, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfb147;
background: linear-gradient(135deg, #cfb147, #92CF47);

Monochromatic scale

Palettes built from #cfb147

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfb147 in the Color Lab