Skip to content

#cdcd96

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

RGB
205, 205, 150
HSL
60°, 36%, 70%
CMYK
0, 0, 27, 20
Luminance
0.5884

Every format

HEX#cdcd96
RGBrgb(205, 205, 150)
HSLhsl(60, 36%, 70%)
CMYKcmyk(0%, 0%, 27%, 20%)
LABlab(81.2 -8.7 27.5)
LCHlch(81.2 28.8 107.6)
OKLCHoklch(0.835 0.073 107.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green80.4%
Blue58.8%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow26.8%
Key (black)19.6%

Color previews

#cdcd96 text on a black background

contrast 12.77:1

Card sample

#cdcd96 text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd96

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd96 in the Color Lab