Skip to content

#dfab0c

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

RGB
223, 171, 12
HSL
45°, 90%, 46%
CMYK
0, 23, 95, 13
Luminance
0.4484

Every format

HEX#dfab0c
RGBrgb(223, 171, 12)
HSLhsl(45, 90%, 46%)
CMYKcmyk(0%, 23%, 95%, 13%)
LABlab(72.8 7.2 74.4)
LCHlch(72.8 74.7 84.5)
OKLCHoklch(0.768 0.155 86.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfab0c on white: 2.11:1
AA ✗ fail · AA-large · AAA
Aa
#dfab0c on black: 9.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green67.1%
Blue4.7%

CMYK percentages

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

Color previews

#dfab0c text on a black background

contrast 9.97:1

Card sample

#dfab0c text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfab0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfab0c in the Color Lab