Skip to content

#daaf21

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

RGB
218, 175, 33
HSL
46°, 74%, 49%
CMYK
0, 20, 85, 15
Luminance
0.4568

Every format

HEX#daaf21
RGBrgb(218, 175, 33)
HSLhsl(46, 74%, 49%)
CMYKcmyk(0%, 20%, 85%, 15%)
LABlab(73.3 3.2 70.6)
LCHlch(73.3 70.6 87.4)
OKLCHoklch(0.771 0.150 89.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#daaf21 on white: 2.07:1
AA ✗ fail · AA-large · AAA
Aa
#daaf21 on black: 10.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green68.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta19.7%
Yellow84.9%
Key (black)14.5%

Color previews

#daaf21 text on a black background

contrast 10.14:1

Card sample

#daaf21 text on a white background

contrast 2.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #daaf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #daaf21 in the Color Lab