Skip to content

#cdcd1f

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

RGB
205, 205, 31
HSL
60°, 74%, 46%
CMYK
0, 0, 85, 20
Luminance
0.5674

Every format

HEX#cdcd1f
RGBrgb(205, 205, 31)
HSLhsl(60, 74%, 46%)
CMYKcmyk(0%, 0%, 85%, 20%)
LABlab(80.0 -17.8 76.1)
LCHlch(80.0 78.1 103.2)
OKLCHoklch(0.822 0.173 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green80.4%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow84.9%
Key (black)19.6%

Color previews

#cdcd1f text on a black background

contrast 12.35:1

Card sample

#cdcd1f text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdcd1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdcd1f in the Color Lab