Skip to content

#dfba0c

a balanced, electric yellow · cool · closest name: gold

RGB
223, 186, 12
HSL
50°, 90%, 46%
CMYK
0, 17, 95, 13
Luminance
0.5083

Every format

HEX#dfba0c
RGBrgb(223, 186, 12)
HSLhsl(50, 90%, 46%)
CMYKcmyk(0%, 17%, 95%, 13%)
LABlab(76.6 -0.7 77.2)
LCHlch(76.6 77.2 90.5)
OKLCHoklch(0.798 0.162 94.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfba0c on white: 1.88:1
AA ✗ fail · AA-large · AAA
Aa
#dfba0c on black: 11.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green72.9%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta16.6%
Yellow94.6%
Key (black)12.5%

Color previews

#dfba0c text on a black background

contrast 11.17:1

Card sample

#dfba0c text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 186, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 186, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfba0c;
background: linear-gradient(135deg, #dfba0c, #77DF0C);

Monochromatic scale

Palettes built from #dfba0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfba0c in the Color Lab