Skip to content

#d2da4f

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

RGB
210, 218, 79
HSL
64°, 65%, 58%
CMYK
4, 0, 64, 15
Luminance
0.6441

Every format

HEX#d2da4f
RGBrgb(210, 218, 79)
HSLhsl(64, 65%, 58%)
CMYKcmyk(4%, 0%, 64%, 15%)
LABlab(84.2 -20.1 65.0)
LCHlch(84.2 68.0 107.2)
OKLCHoklch(0.857 0.159 112.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2da4f on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#d2da4f on black: 13.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green85.5%
Blue31.0%

CMYK percentages

Cyan3.7%
Magenta0.0%
Yellow63.8%
Key (black)14.5%

Color previews

#d2da4f text on a black background

contrast 13.88:1

Card sample

#d2da4f text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2da4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2da4f in the Color Lab