Skip to content

#cdcd50

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

RGB
205, 205, 80
HSL
60°, 56%, 56%
CMYK
0, 0, 61, 20
Luminance
0.5722

Every format

HEX#cdcd50
RGBrgb(205, 205, 80)
HSLhsl(60, 56%, 56%)
CMYKcmyk(0%, 0%, 61%, 20%)
LABlab(80.3 -15.7 60.3)
LCHlch(80.3 62.3 104.6)
OKLCHoklch(0.825 0.146 109.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green80.4%
Blue31.4%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow61.0%
Key (black)19.6%

Color previews

#cdcd50 text on a black background

contrast 12.44:1

Card sample

#cdcd50 text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd50

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd50 in the Color Lab