Skip to content

#ddb821

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

RGB
221, 184, 33
HSL
48°, 74%, 50%
CMYK
0, 17, 85, 13
Luminance
0.4976

Every format

HEX#ddb821
RGBrgb(221, 184, 33)
HSLhsl(48, 74%, 50%)
CMYKcmyk(0%, 17%, 85%, 13%)
LABlab(75.9 -0.2 72.8)
LCHlch(75.9 72.8 90.1)
OKLCHoklch(0.792 0.155 93.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ddb821 on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#ddb821 on black: 10.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.7%
Green72.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta16.7%
Yellow85.1%
Key (black)13.3%

Color previews

#ddb821 text on a black background

contrast 10.95:1

Card sample

#ddb821 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ddb821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddb821 in the Color Lab