Skip to content

#cccf45

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

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

Every format

HEX#cccf45
RGBrgb(204, 207, 69)
HSLhsl(61, 59%, 54%)
CMYKcmyk(1%, 0%, 67%, 19%)
LABlab(80.7 -17.8 65.1)
LCHlch(80.7 67.5 105.2)
OKLCHoklch(0.827 0.156 110.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cccf45 on white: 1.67:1
AA ✗ fail · AA-large · AAA
Aa
#cccf45 on black: 12.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green81.2%
Blue27.1%

CMYK percentages

Cyan1.4%
Magenta0.0%
Yellow66.7%
Key (black)18.8%

Color previews

#cccf45 text on a black background

contrast 12.58:1

Card sample

#cccf45 text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cccf45

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cccf45 in the Color Lab