Skip to content

#cdd40c

a dark, electric yellow · cool · closest name: yellow

RGB
205, 212, 12
HSL
62°, 89%, 44%
CMYK
3, 0, 94, 17
Luminance
0.6009

Every format

HEX#cdd40c
RGBrgb(205, 212, 12)
HSLhsl(62, 89%, 44%)
CMYKcmyk(3%, 0%, 94%, 17%)
LABlab(81.9 -21.6 80.5)
LCHlch(81.9 83.3 105.0)
OKLCHoklch(0.837 0.184 112.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdd40c on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#cdd40c on black: 13.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green83.1%
Blue4.7%

CMYK percentages

Cyan3.3%
Magenta0.0%
Yellow94.3%
Key (black)16.9%

Color previews

#cdd40c text on a black background

contrast 13.02:1

Card sample

#cdd40c text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdd40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdd40c in the Color Lab