Skip to content

#cfbc0c

a dark, electric yellow · cool · closest name: gold

RGB
207, 188, 12
HSL
54°, 89%, 43%
CMYK
0, 9, 94, 19
Luminance
0.4926

Every format

HEX#cfbc0c
RGBrgb(207, 188, 12)
HSLhsl(54, 89%, 43%)
CMYKcmyk(0%, 9%, 94%, 19%)
LABlab(75.6 -8.7 75.8)
LCHlch(75.6 76.3 96.6)
OKLCHoklch(0.787 0.163 102.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfbc0c on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#cfbc0c on black: 10.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green73.7%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta9.2%
Yellow94.2%
Key (black)18.8%

Color previews

#cfbc0c text on a black background

contrast 10.85:1

Card sample

#cfbc0c text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 188, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 188, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfbc0c;
background: linear-gradient(135deg, #cfbc0c, #60CF0C);

Monochromatic scale

Palettes built from #cfbc0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfbc0c in the Color Lab