Skip to content

#d2c64f

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

RGB
210, 198, 79
HSL
55°, 59%, 57%
CMYK
0, 6, 62, 18
Luminance
0.5465

Every format

HEX#d2c64f
RGBrgb(210, 198, 79)
HSLhsl(55, 59%, 57%)
CMYKcmyk(0%, 6%, 62%, 18%)
LABlab(78.8 -10.1 59.3)
LCHlch(78.8 60.2 99.7)
OKLCHoklch(0.814 0.139 103.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2c64f on white: 1.76:1
AA ✗ fail · AA-large · AAA
Aa
#d2c64f on black: 11.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green77.6%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta5.7%
Yellow62.4%
Key (black)17.6%

Color previews

#d2c64f text on a black background

contrast 11.93:1

Card sample

#d2c64f text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2c64f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2c64f in the Color Lab