Skip to content

#cecc49

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

RGB
206, 204, 73
HSL
59°, 58%, 55%
CMYK
0, 1, 65, 19
Luminance
0.5679

Every format

HEX#cecc49
RGBrgb(206, 204, 73)
HSLhsl(59, 58%, 55%)
CMYKcmyk(0%, 1%, 65%, 19%)
LABlab(80.1 -15.2 63.0)
LCHlch(80.1 64.8 103.6)
OKLCHoklch(0.823 0.150 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.8%
Green80.0%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow64.6%
Key (black)19.2%

Color previews

#cecc49 text on a black background

contrast 12.36:1

Card sample

#cecc49 text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 204, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 204, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cecc49;
background: linear-gradient(135deg, #cecc49, #77CE49);

Monochromatic scale

Palettes built from #cecc49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cecc49 in the Color Lab