Skip to content

#cfba48

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

RGB
207, 186, 72
HSL
51°, 58%, 55%
CMYK
0, 10, 65, 19
Luminance
0.4885

Every format

HEX#cfba48
RGBrgb(207, 186, 72)
HSLhsl(51, 58%, 55%)
CMYKcmyk(0%, 10%, 65%, 19%)
LABlab(75.4 -5.7 58.5)
LCHlch(75.4 58.8 95.5)
OKLCHoklch(0.786 0.134 98.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green72.9%
Blue28.2%

CMYK percentages

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

Color previews

#cfba48 text on a black background

contrast 10.77:1

Card sample

#cfba48 text on a white background

contrast 1.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfba48

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfba48 in the Color Lab