Skip to content

#d3ba4f

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

RGB
211, 186, 79
HSL
49°, 60%, 57%
CMYK
0, 12, 63, 17
Luminance
0.4953

Every format

HEX#d3ba4f
RGBrgb(211, 186, 79)
HSLhsl(49, 60%, 57%)
CMYKcmyk(0%, 12%, 63%, 17%)
LABlab(75.8 -3.5 56.0)
LCHlch(75.8 56.1 93.6)
OKLCHoklch(0.790 0.129 96.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d3ba4f on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#d3ba4f on black: 10.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.7%
Green72.9%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta11.8%
Yellow62.6%
Key (black)17.3%

Color previews

#d3ba4f text on a black background

contrast 10.91:1

Card sample

#d3ba4f text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d3ba4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d3ba4f in the Color Lab