Skip to content

#ddab21

a balanced, vivid yellow · warm · closest name: orange

RGB
221, 171, 33
HSL
44°, 74%, 50%
CMYK
0, 23, 85, 13
Luminance
0.4461

Every format

HEX#ddab21
RGBrgb(221, 171, 33)
HSLhsl(44, 74%, 50%)
CMYKcmyk(0%, 23%, 85%, 13%)
LABlab(72.6 6.7 70.1)
LCHlch(72.6 70.4 84.6)
OKLCHoklch(0.767 0.149 86.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ddab21 on white: 2.12:1
AA ✗ fail · AA-large · AAA
Aa
#ddab21 on black: 9.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.7%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta22.6%
Yellow85.1%
Key (black)13.3%

Color previews

#ddab21 text on a black background

contrast 9.92:1

Card sample

#ddab21 text on a white background

contrast 2.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ddab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddab21 in the Color Lab