Skip to content

#dfbf0c

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

RGB
223, 191, 12
HSL
51°, 90%, 46%
CMYK
0, 14, 95, 13
Luminance
0.5298

Every format

HEX#dfbf0c
RGBrgb(223, 191, 12)
HSLhsl(51, 90%, 46%)
CMYKcmyk(0%, 14%, 95%, 13%)
LABlab(77.9 -3.3 78.1)
LCHlch(77.9 78.2 92.4)
OKLCHoklch(0.808 0.165 96.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfbf0c on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#dfbf0c on black: 11.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green74.9%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta14.3%
Yellow94.6%
Key (black)12.5%

Color previews

#dfbf0c text on a black background

contrast 11.60:1

Card sample

#dfbf0c text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfbf0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfbf0c in the Color Lab