Skip to content

#cdd921

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

RGB
205, 217, 33
HSL
64°, 74%, 49%
CMYK
6, 0, 85, 15
Luminance
0.6271

Every format

HEX#cdd921
RGBrgb(205, 217, 33)
HSLhsl(64, 74%, 49%)
CMYKcmyk(6%, 0%, 85%, 15%)
LABlab(83.3 -23.6 78.3)
LCHlch(83.3 81.8 106.8)
OKLCHoklch(0.848 0.184 113.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdd921 on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#cdd921 on black: 13.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green85.1%
Blue12.9%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow84.8%
Key (black)14.9%

Color previews

#cdd921 text on a black background

contrast 13.54:1

Card sample

#cdd921 text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 217, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 217, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdd921;
background: linear-gradient(135deg, #cdd921, #52D921);

Monochromatic scale

Palettes built from #cdd921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdd921 in the Color Lab