Skip to content

#cdcc3b

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

RGB
205, 204, 59
HSL
60°, 59%, 52%
CMYK
0, 1, 71, 20
Luminance
0.5648

Every format

HEX#cdcc3b
RGBrgb(205, 204, 59)
HSLhsl(60, 59%, 52%)
CMYKcmyk(0%, 1%, 71%, 20%)
LABlab(79.9 -16.4 68.0)
LCHlch(79.9 70.0 103.5)
OKLCHoklch(0.821 0.159 109.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdcc3b on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#cdcc3b on black: 12.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green80.0%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta0.5%
Yellow71.2%
Key (black)19.6%

Color previews

#cdcc3b text on a black background

contrast 12.30:1

Card sample

#cdcc3b text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcc3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcc3b in the Color Lab