Skip to content

#cdcd80

a light, soft yellow · cool · closest name: khaki

RGB
205, 205, 128
HSL
60°, 44%, 65%
CMYK
0, 0, 38, 20
Luminance
0.5820

Every format

HEX#cdcd80
RGBrgb(205, 205, 128)
HSLhsl(60, 44%, 65%)
CMYKcmyk(0%, 0%, 38%, 20%)
LABlab(80.8 -11.4 38.4)
LCHlch(80.8 40.0 106.6)
OKLCHoklch(0.831 0.099 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcd80 on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#cdcd80 on black: 12.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green80.4%
Blue50.2%

CMYK percentages

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

Color previews

#cdcd80 text on a black background

contrast 12.64:1

Card sample

#cdcd80 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd80

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd80 in the Color Lab