Skip to content

#cfba55

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

RGB
207, 186, 85
HSL
50°, 56%, 57%
CMYK
0, 10, 59, 19
Luminance
0.4904

Every format

HEX#cfba55
RGBrgb(207, 186, 85)
HSLhsl(50, 56%, 57%)
CMYKcmyk(0%, 10%, 59%, 19%)
LABlab(75.5 -4.8 52.9)
LCHlch(75.5 53.1 95.2)
OKLCHoklch(0.787 0.123 97.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfba55 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#cfba55 on black: 10.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green72.9%
Blue33.3%

CMYK percentages

Cyan0.0%
Magenta10.1%
Yellow58.9%
Key (black)18.8%

Color previews

#cfba55 text on a black background

contrast 10.81:1

Card sample

#cfba55 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfba55

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfba55 in the Color Lab