Skip to content

#d3cf4f

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

RGB
211, 207, 79
HSL
58°, 60%, 57%
CMYK
0, 2, 63, 17
Luminance
0.5904

Every format

HEX#d3cf4f
RGBrgb(211, 207, 79)
HSLhsl(58, 60%, 57%)
CMYKcmyk(0%, 2%, 63%, 17%)
LABlab(81.3 -14.3 62.0)
LCHlch(81.3 63.6 103.0)
OKLCHoklch(0.834 0.148 107.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d3cf4f on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#d3cf4f on black: 12.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.7%
Green81.2%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta1.9%
Yellow62.6%
Key (black)17.3%

Color previews

#d3cf4f text on a black background

contrast 12.81:1

Card sample

#d3cf4f text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(211, 207, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(211, 207, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d3cf4f;
background: linear-gradient(135deg, #d3cf4f, #7FD34F);

Monochromatic scale

Palettes built from #d3cf4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d3cf4f in the Color Lab