Skip to content

#cdcd99

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

RGB
205, 205, 153
HSL
60°, 34%, 70%
CMYK
0, 0, 25, 20
Luminance
0.5894

Every format

HEX#cdcd99
RGBrgb(205, 205, 153)
HSLhsl(60, 34%, 70%)
CMYKcmyk(0%, 0%, 25%, 20%)
LABlab(81.3 -8.3 26.0)
LCHlch(81.3 27.3 107.7)
OKLCHoklch(0.836 0.069 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcd99 on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#cdcd99 on black: 12.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green80.4%
Blue60.0%

CMYK percentages

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

Color previews

#cdcd99 text on a black background

contrast 12.79:1

Card sample

#cdcd99 text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd99

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd99 in the Color Lab