Skip to content

#cdcd49

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

RGB
205, 205, 73
HSL
60°, 57%, 55%
CMYK
0, 0, 64, 20
Luminance
0.5712

Every format

HEX#cdcd49
RGBrgb(205, 205, 73)
HSLhsl(60, 57%, 55%)
CMYKcmyk(0%, 0%, 64%, 20%)
LABlab(80.3 -16.1 63.1)
LCHlch(80.3 65.2 104.3)
OKLCHoklch(0.824 0.151 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcd49 on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#cdcd49 on black: 12.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green80.4%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow64.4%
Key (black)19.6%

Color previews

#cdcd49 text on a black background

contrast 12.42:1

Card sample

#cdcd49 text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 205, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 205, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdcd49;
background: linear-gradient(135deg, #cdcd49, #75CD49);

Monochromatic scale

Palettes built from #cdcd49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd49 in the Color Lab