Skip to content

#cdcd89

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

RGB
205, 205, 137
HSL
60°, 41%, 67%
CMYK
0, 0, 33, 20
Luminance
0.5845

Every format

HEX#cdcd89
RGBrgb(205, 205, 137)
HSLhsl(60, 41%, 67%)
CMYKcmyk(0%, 0%, 33%, 20%)
LABlab(81.0 -10.4 33.9)
LCHlch(81.0 35.5 107.0)
OKLCHoklch(0.833 0.088 108.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcd89 on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#cdcd89 on black: 12.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green80.4%
Blue53.7%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow33.2%
Key (black)19.6%

Color previews

#cdcd89 text on a black background

contrast 12.69:1

Card sample

#cdcd89 text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd89

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd89 in the Color Lab