Skip to content

#c7bc21

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

RGB
199, 188, 33
HSL
56°, 72%, 46%
CMYK
0, 6, 83, 22
Luminance
0.4822

Every format

HEX#c7bc21
RGBrgb(199, 188, 33)
HSLhsl(56, 72%, 46%)
CMYKcmyk(0%, 6%, 83%, 22%)
LABlab(75.0 -11.8 71.2)
LCHlch(75.0 72.2 99.4)
OKLCHoklch(0.780 0.158 105.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red78.0%
Green73.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow83.4%
Key (black)22.0%

Color previews

#c7bc21 text on a black background

contrast 10.64:1

Card sample

#c7bc21 text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(199, 188, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 188, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7bc21;
background: linear-gradient(135deg, #c7bc21, #63C721);

Monochromatic scale

Palettes built from #c7bc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7bc21 in the Color Lab