Skip to content

#cdcd42

a balanced, vivid yellow · cool · closest name: khaki

RGB
205, 205, 66
HSL
60°, 58%, 53%
CMYK
0, 0, 68, 20
Luminance
0.5704

Every format

HEX#cdcd42
RGBrgb(205, 205, 66)
HSLhsl(60, 58%, 53%)
CMYKcmyk(0%, 0%, 68%, 20%)
LABlab(80.2 -16.5 65.8)
LCHlch(80.2 67.8 104.1)
OKLCHoklch(0.824 0.156 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcd42 on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#cdcd42 on black: 12.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green80.4%
Blue25.9%

CMYK percentages

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

Color previews

#cdcd42 text on a black background

contrast 12.41:1

Card sample

#cdcd42 text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd42

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd42 in the Color Lab