Skip to content

#dfb706

a dark, electric yellow · warm · closest name: Goldenrod

RGB
223, 183, 6
HSL
49°, 95%, 45%
CMYK
0, 18, 97, 13
Luminance
0.4957

At a glance

Every number on this page in one read: what #dfb706 is made of, how bright it looks, and which way it leans.

Hex
#dfb706
Hue
49°
yellow
Saturation
95%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
73%
weighted brightness
Luminance
0.4957
WCAG relative
Temperature
Warm
16/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
10.91:1
Closest name
Goldenrod
ΔE2000 6.5
Where it sits
Hue49° of 360°
Saturation95%
Lightness45%
Temperature
Warm ← → Cool16% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#dfb706
RGBrgb(223, 183, 6)
HSLhsl(49, 95%, 45%)
CMYKcmyk(0%, 18%, 97%, 13%)
LABlab(75.8 0.8 77.2)
LCHlch(75.8 77.2 89.4)
OKLCHoklch(0.792 0.161 92.8)
Decimal14661382
Display P3color(display-p3 0.875 0.718 0.024)

Copy-ready code

/* CSS */
color: #dfb706;
background-color: #dfb706;
/* Tailwind (arbitrary) */
class="text-[#dfb706] bg-[#dfb706]"
/* SCSS */
$brand: #dfb706;
/* SwiftUI */
Color(red: 0.875, green: 0.718, blue: 0.024)
/* Android */
Color.parseColor("#dfb706")
/* Flutter */
Color(0xFFDFB706)
/* Python / OpenCV (BGR) */
(6, 183, 223)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #dfb706 · 10.91:1
Use #000000AAA at every size.
Aa
White text · 1.92:1
AA fail · AA large fail · AAA fail
Aa
Black text · 10.91:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #dfb706 as text scores 1.92:1 on white and 10.91:1 on black.

Accessibility — WCAG contrast

Aa
#dfb706 on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#dfb706 on black: 10.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CDB400
deuteranopia · #D7C01F
tritanopia · #F2A69C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #dfb706 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDFBF1
#FBF7E4
#FAF0C2
#FCE892
#FBDD5B
#F9D224
#dfb706
#C7A305
#9F8204
#735F08
#483B05
Base = 600Lightest = 50 · #FDFBF1Darkest = 950 · #483B05
:root {
  --brand-50: #FDFBF1;
  --brand-100: #FBF7E4;
  --brand-200: #FAF0C2;
  --brand-300: #FCE892;
  --brand-400: #FBDD5B;
  --brand-500: #F9D224;
  --brand-600: #dfb706;
  --brand-700: #C7A305;
  --brand-800: #9F8204;
  --brand-900: #735F08;
  --brand-950: #483B05;
  --brand: #dfb706;
  --brand-ink: #000000;
}

Colors that work with #dfb706

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF9F4
Tinted page background
Border#EDE4C0
Hairlines and dividers
Muted text#9B8C4B
Captions on the surface
Accent#0164E4
Second voice, not a rival
Dark variant#7C6603
Hover, pressed, headers
Light variant#FEFAE6
Selected rows, tints
Dark surface#242114
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #dfb706

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#062EDF
Analogous left#DF4A06
Analogous right#9BDF06
Split-complement 1#069BDF
Split-complement 2#4A06DF
Triadic 1#06DFB7
Triadic 2#B706DF
Tetradic#06DF4A

RGB percentages

Red87.5%
Green71.8%
Blue2.4%

CMYK percentages

Cyan0.0%
Magenta17.9%
Yellow97.3%
Key (black)12.5%

Color previews

#dfb706 text on a black background

contrast 10.91:1

Card sample

#dfb706 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 183, 6, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 183, 6, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfb706;
background: linear-gradient(135deg, #dfb706, #76DF06);

Monochromatic scale

Palettes built from #dfb706

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#dfb706 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#dfb706, answered

What color is #dfb706?

#dfb706 is a dark electric yellow, closest to Goldenrod (ΔE2000 6.5). It sits at 49° on the hue wheel with 95% saturation and 45% lightness, which reads as warm.

What is the RGB value of #dfb706?

rgb(223, 183, 6) — 223 red, 183 green and 6 blue out of 255, or 87.5% / 71.8% / 2.4% by channel.

Is #dfb706 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4957 and perceived brightness is 73%, so black text on it reaches 10.91:1.

Should I use black or white text on #dfb706?

Black. It scores 10.91:1 against #dfb706, versus 1.92:1 for white — AAA at any size.

What is the complementary color of #dfb706?

#062EDF sits directly opposite on the wheel. Softer options are the split-complements #069BDF and #4A06DF, which give the same contrast with far less vibration.

What colors go well with #dfb706?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8C4B for secondary text, #0164E4 as an accent and #7C6603 for hover and pressed states. For a palette, the analogous pair #DF4A06 and #9BDF06 stays calm, while #062EDF is the loudest partner.

What is #dfb706 in CMYK for printing?

cmyk(0%, 18%, 97%, 13%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #dfb706 warm or cool?

Warm — it scores 16 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF8B06; nudged cooler, #B9E104.

Work with #dfb706 in the Color Lab