Skip to content

#d7cd45

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

RGB
215, 205, 69
HSL
56°, 65%, 56%
CMYK
0, 5, 68, 16
Luminance
0.5854

Every format

HEX#d7cd45
RGBrgb(215, 205, 69)
HSLhsl(56, 65%, 56%)
CMYKcmyk(0%, 5%, 68%, 16%)
LABlab(81.0 -12.2 65.8)
LCHlch(81.0 66.9 100.5)
OKLCHoklch(0.832 0.152 105.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d7cd45 on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#d7cd45 on black: 12.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.3%
Green80.4%
Blue27.1%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow67.9%
Key (black)15.7%

Color previews

#d7cd45 text on a black background

contrast 12.71:1

Card sample

#d7cd45 text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(215, 205, 69, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 205, 69, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d7cd45;
background: linear-gradient(135deg, #d7cd45, #80D745);

Monochromatic scale

Palettes built from #d7cd45

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d7cd45 in the Color Lab