Skip to content

#ddaf21

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

RGB
221, 175, 33
HSL
45°, 74%, 50%
CMYK
0, 21, 85, 13
Luminance
0.4614

Every format

HEX#ddaf21
RGBrgb(221, 175, 33)
HSLhsl(45, 74%, 50%)
CMYKcmyk(0%, 21%, 85%, 13%)
LABlab(73.6 4.5 71.0)
LCHlch(73.6 71.1 86.3)
OKLCHoklch(0.774 0.151 88.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ddaf21 on white: 2.05:1
AA ✗ fail · AA-large · AAA
Aa
#ddaf21 on black: 10.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.7%
Green68.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta20.8%
Yellow85.1%
Key (black)13.3%

Color previews

#ddaf21 text on a black background

contrast 10.23:1

Card sample

#ddaf21 text on a white background

contrast 2.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ddaf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddaf21 in the Color Lab