Skip to content

#c7bf49

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

RGB
199, 191, 73
HSL
56°, 53%, 53%
CMYK
0, 4, 63, 22
Luminance
0.4988

Every format

HEX#c7bf49
RGBrgb(199, 191, 73)
HSLhsl(56, 53%, 53%)
CMYKcmyk(0%, 4%, 63%, 22%)
LABlab(76.0 -11.6 58.5)
LCHlch(76.0 59.7 101.2)
OKLCHoklch(0.789 0.138 105.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c7bf49 on white: 1.91:1
AA ✗ fail · AA-large · AAA
Aa
#c7bf49 on black: 10.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.0%
Green74.9%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta4.0%
Yellow63.3%
Key (black)22.0%

Color previews

#c7bf49 text on a black background

contrast 10.98:1

Card sample

#c7bf49 text on a white background

contrast 1.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(199, 191, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 191, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7bf49;
background: linear-gradient(135deg, #c7bf49, #7BC749);

Monochromatic scale

Palettes built from #c7bf49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7bf49 in the Color Lab