Skip to content

#df9f0b

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

RGB
223, 159, 11
HSL
42°, 91%, 46%
CMYK
0, 29, 95, 13
Luminance
0.4051

Every format

HEX#df9f0b
RGBrgb(223, 159, 11)
HSLhsl(42, 91%, 46%)
CMYKcmyk(0%, 29%, 95%, 13%)
LABlab(69.8 13.6 72.4)
LCHlch(69.8 73.7 79.4)
OKLCHoklch(0.745 0.153 79.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df9f0b on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#df9f0b on black: 9.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green62.4%
Blue4.3%

CMYK percentages

Cyan0.0%
Magenta28.7%
Yellow95.1%
Key (black)12.5%

Color previews

#df9f0b text on a black background

contrast 9.10:1

Card sample

#df9f0b text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 159, 11, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 159, 11, 0.45);
Border & gradient
Gradient panel
border: 3px solid #df9f0b;
background: linear-gradient(135deg, #df9f0b, #92DF0B);

Monochromatic scale

Palettes built from #df9f0b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df9f0b in the Color Lab