Skip to content

#cfba56

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

RGB
207, 186, 86
HSL
50°, 56%, 58%
CMYK
0, 10, 59, 19
Luminance
0.4906

Every format

HEX#cfba56
RGBrgb(207, 186, 86)
HSLhsl(50, 56%, 58%)
CMYKcmyk(0%, 10%, 59%, 19%)
LABlab(75.5 -4.7 52.4)
LCHlch(75.5 52.6 95.1)
OKLCHoklch(0.787 0.122 97.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green72.9%
Blue33.7%

CMYK percentages

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

Color previews

#cfba56 text on a black background

contrast 10.81:1

Card sample

#cfba56 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfba56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfba56 in the Color Lab