Skip to content

#cfba50

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

RGB
207, 186, 80
HSL
50°, 57%, 56%
CMYK
0, 10, 61, 19
Luminance
0.4896

Every format

HEX#cfba50
RGBrgb(207, 186, 80)
HSLhsl(50, 57%, 56%)
CMYKcmyk(0%, 10%, 61%, 19%)
LABlab(75.4 -5.1 55.1)
LCHlch(75.4 55.3 95.3)
OKLCHoklch(0.786 0.128 98.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfba50 on white: 1.95:1
AA ✗ fail · AA-large · AAA
Aa
#cfba50 on black: 10.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green72.9%
Blue31.4%

CMYK percentages

Cyan0.0%
Magenta10.1%
Yellow61.4%
Key (black)18.8%

Color previews

#cfba50 text on a black background

contrast 10.79:1

Card sample

#cfba50 text on a white background

contrast 1.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfba50

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfba50 in the Color Lab