Skip to content

#cdcd2f

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

RGB
205, 205, 47
HSL
60°, 63%, 49%
CMYK
0, 0, 77, 20
Luminance
0.5685

Every format

HEX#cdcd2f
RGBrgb(205, 205, 47)
HSLhsl(60, 63%, 49%)
CMYKcmyk(0%, 0%, 77%, 20%)
LABlab(80.1 -17.4 72.1)
LCHlch(80.1 74.2 103.5)
OKLCHoklch(0.823 0.167 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green80.4%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow77.1%
Key (black)19.6%

Color previews

#cdcd2f text on a black background

contrast 12.37:1

Card sample

#cdcd2f text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd2f in the Color Lab