Skip to content

#dac021

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

RGB
218, 192, 33
HSL
52°, 74%, 49%
CMYK
0, 12, 85, 15
Luminance
0.5271

Every format

HEX#dac021
RGBrgb(218, 192, 33)
HSLhsl(52, 74%, 49%)
CMYKcmyk(0%, 12%, 85%, 15%)
LABlab(77.7 -5.6 74.2)
LCHlch(77.7 74.4 94.3)
OKLCHoklch(0.806 0.160 98.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dac021 on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#dac021 on black: 11.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green75.3%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta11.9%
Yellow84.9%
Key (black)14.5%

Color previews

#dac021 text on a black background

contrast 11.54:1

Card sample

#dac021 text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dac021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dac021 in the Color Lab