Skip to content

#dab821

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

RGB
218, 184, 33
HSL
49°, 74%, 49%
CMYK
0, 16, 85, 15
Luminance
0.4930

Every format

HEX#dab821
RGBrgb(218, 184, 33)
HSLhsl(49, 74%, 49%)
CMYKcmyk(0%, 16%, 85%, 15%)
LABlab(75.6 -1.5 72.5)
LCHlch(75.6 72.5 91.2)
OKLCHoklch(0.790 0.155 94.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dab821 on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#dab821 on black: 10.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green72.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta15.6%
Yellow84.9%
Key (black)14.5%

Color previews

#dab821 text on a black background

contrast 10.86:1

Card sample

#dab821 text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dab821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dab821 in the Color Lab