Skip to content

#cfbc40

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

RGB
207, 188, 64
HSL
52°, 60%, 53%
CMYK
0, 9, 69, 19
Luminance
0.4960

Every format

HEX#cfbc40
RGBrgb(207, 188, 64)
HSLhsl(52, 60%, 53%)
CMYKcmyk(0%, 9%, 69%, 19%)
LABlab(75.8 -7.1 62.2)
LCHlch(75.8 62.6 96.5)
OKLCHoklch(0.789 0.141 100.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfbc40 on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#cfbc40 on black: 10.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green73.7%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta9.2%
Yellow69.1%
Key (black)18.8%

Color previews

#cfbc40 text on a black background

contrast 10.92:1

Card sample

#cfbc40 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfbc40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfbc40 in the Color Lab