Skip to content

#dfc949

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

RGB
223, 201, 73
HSL
51°, 70%, 58%
CMYK
0, 10, 67, 13
Luminance
0.5794

Every format

HEX#dfc949
RGBrgb(223, 201, 73)
HSLhsl(51, 70%, 58%)
CMYKcmyk(0%, 10%, 67%, 13%)
LABlab(80.7 -6.5 64.1)
LCHlch(80.7 64.4 95.8)
OKLCHoklch(0.832 0.146 99.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green78.8%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta9.9%
Yellow67.3%
Key (black)12.5%

Color previews

#dfc949 text on a black background

contrast 12.59:1

Card sample

#dfc949 text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 201, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 201, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfc949;
background: linear-gradient(135deg, #dfc949, #91DF49);

Monochromatic scale

Palettes built from #dfc949

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfc949 in the Color Lab