Skip to content

#cec045

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

RGB
206, 192, 69
HSL
54°, 58%, 54%
CMYK
0, 7, 67, 19
Luminance
0.5125

Every format

HEX#cec045
RGBrgb(206, 192, 69)
HSLhsl(54, 58%, 54%)
CMYKcmyk(0%, 7%, 67%, 19%)
LABlab(76.8 -9.3 61.2)
LCHlch(76.8 62.0 98.7)
OKLCHoklch(0.797 0.141 102.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec045 on white: 1.87:1
AA ✗ fail · AA-large · AAA
Aa
#cec045 on black: 11.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green75.3%
Blue27.1%

CMYK percentages

Cyan0.0%
Magenta6.8%
Yellow66.5%
Key (black)19.2%

Color previews

#cec045 text on a black background

contrast 11.25:1

Card sample

#cec045 text on a white background

contrast 1.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 192, 69, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 192, 69, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec045;
background: linear-gradient(135deg, #cec045, #81CE45);

Monochromatic scale

Palettes built from #cec045

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cec045 in the Color Lab