Skip to content

#cfc049

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

RGB
207, 192, 73
HSL
53°, 58%, 55%
CMYK
0, 7, 65, 19
Luminance
0.5145

Every format

HEX#cfc049
RGBrgb(207, 192, 73)
HSLhsl(53, 58%, 55%)
CMYKcmyk(0%, 7%, 65%, 19%)
LABlab(77.0 -8.7 59.8)
LCHlch(77.0 60.4 98.3)
OKLCHoklch(0.798 0.138 102.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfc049 on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#cfc049 on black: 11.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green75.3%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta7.2%
Yellow64.7%
Key (black)18.8%

Color previews

#cfc049 text on a black background

contrast 11.29:1

Card sample

#cfc049 text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 192, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 192, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfc049;
background: linear-gradient(135deg, #cfc049, #85CF49);

Monochromatic scale

Palettes built from #cfc049

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfc049 in the Color Lab