Skip to content

#dfd77d

a light, vivid yellow · warm · closest name: Khaki

RGB
223, 215, 125
HSL
55°, 61%, 68%
CMYK
0, 4, 44, 13
Luminance
0.6577

At a glance

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

Hex
#dfd77d
Hue
55°
yellow
Saturation
61%
vivid
Lightness
68%
light
Brightness
87%
HSV value
Perceived
82%
weighted brightness
Luminance
0.6577
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
14.15:1
Closest name
Khaki
ΔE2000 3.5
Where it sits
Hue55° of 360°
Saturation61%
Lightness68%
Temperature
Warm ← → Cool21% 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#dfd77d
RGBrgb(223, 215, 125)
HSLhsl(55, 61%, 68%)
CMYKcmyk(0%, 4%, 44%, 13%)
LABlab(84.9 -9.7 45.2)
LCHlch(84.9 46.3 102.1)
OKLCHoklch(0.866 0.112 104.0)
Decimal14669693
Display P3color(display-p3 0.875 0.843 0.490)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd77d on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#dfd77d on black: 14.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E5D176
deuteranopia · #E8D681
tritanopia · #ECCCC1

Color scale — 50 to 950

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

#FBFAF4
#F7F6E8
#EFEDCC
#E9E3A5
#dfd77d
#D3C84B
#C4B830
#A49A28
#837B20
#5F5A1B
#3C3811
Base = 400Lightest = 50 · #FBFAF4Darkest = 950 · #3C3811
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F6E8;
  --brand-200: #EFEDCC;
  --brand-300: #E9E3A5;
  --brand-400: #dfd77d;
  --brand-500: #D3C84B;
  --brand-600: #C4B830;
  --brand-700: #A49A28;
  --brand-800: #837B20;
  --brand-900: #5F5A1B;
  --brand-950: #3C3811;
  --brand: #dfd77d;
  --brand-ink: #000000;
}

Colors that work with #dfd77d

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#EDE9C0
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#254FA7
Second voice, not a rival
Dark variant#666019
Hover, pressed, headers
Light variant#FAF9EB
Selected rows, tints
Dark surface#242314
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 #dfd77d

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
  • Card and section backgrounds
  • 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
  • White 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#7D85DF
Analogous left#DFA67D
Analogous right#B6DF7D
Split-complement 1#7DB6DF
Split-complement 2#A67DDF
Triadic 1#7DDFD7
Triadic 2#D77DDF
Tetradic#7DDFA6

RGB percentages

Red87.5%
Green84.3%
Blue49.0%

CMYK percentages

Cyan0.0%
Magenta3.6%
Yellow43.9%
Key (black)12.5%

Color previews

#dfd77d text on a black background

contrast 14.15:1

Card sample

#dfd77d text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd77d

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.

#dfd77d 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
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#dfd77d, answered

What color is #dfd77d?

#dfd77d is a light vivid yellow, closest to Khaki (ΔE2000 3.5). It sits at 55° on the hue wheel with 61% saturation and 68% lightness, which reads as warm.

What is the RGB value of #dfd77d?

rgb(223, 215, 125) — 223 red, 215 green and 125 blue out of 255, or 87.5% / 84.3% / 49% by channel.

Is #dfd77d a light or a dark color?

It is a light color. Relative luminance is 0.6577 and perceived brightness is 82%, so black text on it reaches 14.15:1.

Should I use black or white text on #dfd77d?

Black. It scores 14.15:1 against #dfd77d, versus 1.48:1 for white — AAA at any size.

What is the complementary color of #dfd77d?

#7D85DF sits directly opposite on the wheel. Softer options are the split-complements #7DB6DF and #A67DDF, which give the same contrast with far less vibration.

What colors go well with #dfd77d?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #254FA7 as an accent and #666019 for hover and pressed states. For a palette, the analogous pair #DFA67D and #B6DF7D stays calm, while #7D85DF is the loudest partner.

What is #dfd77d in CMYK for printing?

cmyk(0%, 4%, 44%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #dfd77d warm or cool?

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

Work with #dfd77d in the Color Lab