Skip to content

#d2cd4b

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

RGB
210, 205, 75
HSL
58°, 60%, 56%
CMYK
0, 2, 64, 18
Luminance
0.5787

Every format

HEX#d2cd4b
RGBrgb(210, 205, 75)
HSLhsl(58, 60%, 56%)
CMYKcmyk(0%, 2%, 64%, 18%)
LABlab(80.7 -13.9 62.9)
LCHlch(80.7 64.4 102.5)
OKLCHoklch(0.829 0.149 107.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cd4b on white: 1.67:1
AA ✗ fail · AA-large · AAA
Aa
#d2cd4b on black: 12.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green80.4%
Blue29.4%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow64.3%
Key (black)17.6%

Color previews

#d2cd4b text on a black background

contrast 12.57:1

Card sample

#d2cd4b text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2cd4b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cd4b in the Color Lab