Skip to content

#cfba0c

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

RGB
207, 186, 12
HSL
54°, 89%, 43%
CMYK
0, 10, 94, 19
Luminance
0.4841

Every format

HEX#cfba0c
RGBrgb(207, 186, 12)
HSLhsl(54, 89%, 43%)
CMYKcmyk(0%, 10%, 94%, 19%)
LABlab(75.1 -7.7 75.4)
LCHlch(75.1 75.8 95.8)
OKLCHoklch(0.783 0.162 101.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green72.9%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta10.1%
Yellow94.2%
Key (black)18.8%

Color previews

#cfba0c text on a black background

contrast 10.68:1

Card sample

#cfba0c text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfba0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfba0c in the Color Lab