Skip to content

#cfcc45

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

RGB
207, 204, 69
HSL
59°, 59%, 54%
CMYK
0, 1, 67, 19
Luminance
0.5688

Every format

HEX#cfcc45
RGBrgb(207, 204, 69)
HSLhsl(59, 59%, 54%)
CMYKcmyk(0%, 1%, 67%, 19%)
LABlab(80.1 -15.0 64.6)
LCHlch(80.1 66.3 103.1)
OKLCHoklch(0.823 0.152 108.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfcc45 on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#cfcc45 on black: 12.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green80.0%
Blue27.1%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow66.7%
Key (black)18.8%

Color previews

#cfcc45 text on a black background

contrast 12.38:1

Card sample

#cfcc45 text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 204, 69, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 204, 69, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfcc45;
background: linear-gradient(135deg, #cfcc45, #76CF45);

Monochromatic scale

Palettes built from #cfcc45

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcc45 in the Color Lab