Skip to content

#cfbf39

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

RGB
207, 191, 57
HSL
54°, 61%, 52%
CMYK
0, 8, 73, 19
Luminance
0.5082

Every format

HEX#cfbf39
RGBrgb(207, 191, 57)
HSLhsl(54, 61%, 52%)
CMYKcmyk(0%, 8%, 73%, 19%)
LABlab(76.6 -9.0 65.6)
LCHlch(76.6 66.2 97.8)
OKLCHoklch(0.795 0.148 102.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfbf39 on white: 1.88:1
AA ✗ fail · AA-large · AAA
Aa
#cfbf39 on black: 11.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green74.9%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta7.7%
Yellow72.5%
Key (black)18.8%

Color previews

#cfbf39 text on a black background

contrast 11.16:1

Card sample

#cfbf39 text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 191, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 191, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfbf39;
background: linear-gradient(135deg, #cfbf39, #7BCF39);

Monochromatic scale

Palettes built from #cfbf39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfbf39 in the Color Lab