Skip to content

#dedd21

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

RGB
222, 221, 33
HSL
60°, 74%, 50%
CMYK
0, 1, 85, 13
Luminance
0.6735

Every format

HEX#dedd21
RGBrgb(222, 221, 33)
HSLhsl(60, 74%, 50%)
CMYKcmyk(0%, 1%, 85%, 13%)
LABlab(85.7 -18.5 80.8)
LCHlch(85.7 82.9 102.9)
OKLCHoklch(0.870 0.183 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dedd21 on white: 1.45:1
AA ✗ fail · AA-large · AAA
Aa
#dedd21 on black: 14.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green86.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta0.5%
Yellow85.1%
Key (black)12.9%

Color previews

#dedd21 text on a black background

contrast 14.47:1

Card sample

#dedd21 text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 221, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 221, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dedd21;
background: linear-gradient(135deg, #dedd21, #61DE21);

Monochromatic scale

Palettes built from #dedd21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dedd21 in the Color Lab