Skip to content

#d2cf68

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

RGB
210, 207, 104
HSL
58°, 54%, 62%
CMYK
0, 1, 51, 18
Luminance
0.5933

Every format

HEX#d2cf68
RGBrgb(210, 207, 104)
HSLhsl(58, 54%, 62%)
CMYKcmyk(0%, 1%, 51%, 18%)
LABlab(81.5 -12.8 51.0)
LCHlch(81.5 52.6 104.1)
OKLCHoklch(0.836 0.126 107.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cf68 on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#d2cf68 on black: 12.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green81.2%
Blue40.8%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow50.5%
Key (black)17.6%

Color previews

#d2cf68 text on a black background

contrast 12.87:1

Card sample

#d2cf68 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 207, 104, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 207, 104, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2cf68;
background: linear-gradient(135deg, #d2cf68, #8ED268);

Monochromatic scale

Palettes built from #d2cf68

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cf68 in the Color Lab