Skip to content

#cec849

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

RGB
206, 200, 73
HSL
57°, 58%, 55%
CMYK
0, 3, 65, 19
Luminance
0.5491

Every format

HEX#cec849
RGBrgb(206, 200, 73)
HSLhsl(57, 58%, 55%)
CMYKcmyk(0%, 3%, 65%, 19%)
LABlab(79.0 -13.2 61.9)
LCHlch(79.0 63.3 102.0)
OKLCHoklch(0.814 0.146 106.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec849 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#cec849 on black: 11.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green78.4%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow64.6%
Key (black)19.2%

Color previews

#cec849 text on a black background

contrast 11.98:1

Card sample

#cec849 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cec849

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cec849 in the Color Lab