Skip to content

#cdcd59

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

RGB
205, 205, 89
HSL
60°, 54%, 58%
CMYK
0, 0, 57, 20
Luminance
0.5736

Every format

HEX#cdcd59
RGBrgb(205, 205, 89)
HSLhsl(60, 54%, 58%)
CMYKcmyk(0%, 0%, 57%, 20%)
LABlab(80.4 -15.0 56.5)
LCHlch(80.4 58.5 104.9)
OKLCHoklch(0.826 0.138 109.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcd59 on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#cdcd59 on black: 12.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green80.4%
Blue34.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow56.6%
Key (black)19.6%

Color previews

#cdcd59 text on a black background

contrast 12.47:1

Card sample

#cdcd59 text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd59

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd59 in the Color Lab