Skip to content

#cdcd9a

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

RGB
205, 205, 154
HSL
60°, 34%, 70%
CMYK
0, 0, 25, 20
Luminance
0.5897

Every format

HEX#cdcd9a
RGBrgb(205, 205, 154)
HSLhsl(60, 34%, 70%)
CMYKcmyk(0%, 0%, 25%, 20%)
LABlab(81.3 -8.2 25.5)
LCHlch(81.3 26.8 107.8)
OKLCHoklch(0.836 0.068 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow24.9%
Key (black)19.6%

Color previews

#cdcd9a text on a black background

contrast 12.79:1

Card sample

#cdcd9a text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd9a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd9a in the Color Lab