Skip to content

#dfd90d

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

RGB
223, 217, 13
HSL
58°, 89%, 46%
CMYK
0, 3, 94, 13
Luminance
0.6534

At a glance

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

Hex
#dfd90d
Hue
58°
yellow
Saturation
89%
electric
Lightness
46%
balanced
Brightness
87%
HSV value
Perceived
81%
weighted brightness
Luminance
0.6534
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
14.07:1
Closest name
Gold
ΔE2000 8.1
Where it sits
Hue58° of 360°
Saturation89%
Lightness46%
Temperature
Warm ← → Cool24% 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#dfd90d
RGBrgb(223, 217, 13)
HSLhsl(58, 89%, 46%)
CMYKcmyk(0%, 3%, 94%, 13%)
LABlab(84.7 -16.4 83.1)
LCHlch(84.7 84.7 101.2)
OKLCHoklch(0.862 0.184 107.7)
Decimal14670093
Display P3color(display-p3 0.875 0.851 0.051)

Copy-ready code

/* CSS */
color: #dfd90d;
background-color: #dfd90d;
/* Tailwind (arbitrary) */
class="text-[#dfd90d] bg-[#dfd90d]"
/* SCSS */
$brand: #dfd90d;
/* SwiftUI */
Color(red: 0.875, green: 0.851, blue: 0.051)
/* Android */
Color.parseColor("#dfd90d")
/* Flutter */
Color(0xFFDFD90D)
/* Python / OpenCV (BGR) */
(13, 217, 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 #dfd90d · 14.07:1
Use #000000AAA at every size.
Aa
White text · 1.49:1
AA fail · AA large fail · AAA fail
Aa
Black text · 14.07:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #dfd90d as text scores 1.49:1 on white and 14.07:1 on black.

Accessibility — WCAG contrast

Aa
#dfd90d on white: 1.49:1
AA ✗ fail · AA-large · AAA
Aa
#dfd90d on black: 14.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #ECD000
deuteranopia · #F0D62C
tritanopia · #F0CAB9

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #dfd90d 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.

#FDFCF2
#FBFAE5
#F8F7C4
#F9F695
#F6F160
#F3ED2B
#dfd90d
#C1BC0B
#9A9609
#6F6C0B
#464407
Base = 600Lightest = 50 · #FDFCF2Darkest = 950 · #464407
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FBFAE5;
  --brand-200: #F8F7C4;
  --brand-300: #F9F695;
  --brand-400: #F6F160;
  --brand-500: #F3ED2B;
  --brand-600: #dfd90d;
  --brand-700: #C1BC0B;
  --brand-800: #9A9609;
  --brand-900: #6F6C0B;
  --brand-950: #464407;
  --brand: #dfd90d;
  --brand-ink: #000000;
}

Colors that work with #dfd90d

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#FAFAF4
Tinted page background
Border#EDEBC0
Hairlines and dividers
Muted text#9B994B
Captions on the surface
Accent#0845E4
Second voice, not a rival
Dark variant#787507
Hover, pressed, headers
Light variant#FEFDE7
Selected rows, tints
Dark surface#242414
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 #dfd90d

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
  • 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
  • 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#0D13DF
Analogous left#DF700D
Analogous right#7CDF0D
Split-complement 1#0D7CDF
Split-complement 2#700DDF
Triadic 1#0DDFD9
Triadic 2#D90DDF
Tetradic#0DDF70

RGB percentages

Red87.5%
Green85.1%
Blue5.1%

CMYK percentages

Cyan0.0%
Magenta2.7%
Yellow94.2%
Key (black)12.5%

Color previews

#dfd90d text on a black background

contrast 14.07:1

Card sample

#dfd90d text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 217, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 217, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd90d;
background: linear-gradient(135deg, #dfd90d, #59DF0D);

Monochromatic scale

Palettes built from #dfd90d

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.

#dfd90d 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.

#dfd90d, answered

What color is #dfd90d?

#dfd90d is a balanced electric yellow, closest to Gold (ΔE2000 8.1). It sits at 58° on the hue wheel with 89% saturation and 46% lightness, which reads as warm.

What is the RGB value of #dfd90d?

rgb(223, 217, 13) — 223 red, 217 green and 13 blue out of 255, or 87.5% / 85.1% / 5.1% by channel.

Is #dfd90d a light or a dark color?

It is a light color. Relative luminance is 0.6534 and perceived brightness is 81%, so black text on it reaches 14.07:1.

Should I use black or white text on #dfd90d?

Black. It scores 14.07:1 against #dfd90d, versus 1.49:1 for white — AAA at any size.

What is the complementary color of #dfd90d?

#0D13DF sits directly opposite on the wheel. Softer options are the split-complements #0D7CDF and #700DDF, which give the same contrast with far less vibration.

What colors go well with #dfd90d?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B994B for secondary text, #0845E4 as an accent and #787507 for hover and pressed states. For a palette, the analogous pair #DF700D and #7CDF0D stays calm, while #0D13DF is the loudest partner.

What is #dfd90d in CMYK for printing?

cmyk(0%, 3%, 94%, 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 #dfd90d warm or cool?

Warm — it scores 24 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF9D0D; nudged cooler, #99E20B.

Work with #dfd90d in the Color Lab