Skip to content

#cdcd84

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

RGB
205, 205, 132
HSL
60°, 42%, 66%
CMYK
0, 0, 36, 20
Luminance
0.5831

Every format

HEX#cdcd84
RGBrgb(205, 205, 132)
HSLhsl(60, 42%, 66%)
CMYKcmyk(0%, 0%, 36%, 20%)
LABlab(80.9 -11.0 36.4)
LCHlch(80.9 38.0 106.8)
OKLCHoklch(0.832 0.094 108.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green80.4%
Blue51.8%

CMYK percentages

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

Color previews

#cdcd84 text on a black background

contrast 12.66:1

Card sample

#cdcd84 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd84

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd84 in the Color Lab