Skip to content

#cdcd22

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

RGB
205, 205, 34
HSL
60°, 72%, 47%
CMYK
0, 0, 83, 20
Luminance
0.5676

Every format

HEX#cdcd22
RGBrgb(205, 205, 34)
HSLhsl(60, 72%, 47%)
CMYKcmyk(0%, 0%, 83%, 20%)
LABlab(80.0 -17.8 75.4)
LCHlch(80.0 77.5 103.2)
OKLCHoklch(0.822 0.172 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcd22 on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#cdcd22 on black: 12.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green80.4%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow83.4%
Key (black)19.6%

Color previews

#cdcd22 text on a black background

contrast 12.35:1

Card sample

#cdcd22 text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd22 in the Color Lab