#dfd161
a balanced, vivid yellow · warm · closest name: Khaki
At a glance
Every number on this page in one read: what #dfd161 is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #dfd161 |
| RGB | rgb(223, 209, 97) |
| HSL | hsl(53, 66%, 63%) |
| CMYK | cmyk(0%, 6%, 57%, 13%) |
| LAB | lab(83.0 -9.1 56.3) |
| LCH | lch(83.0 57.0 99.1) |
| OKLCH | oklch(0.850 0.134 102.2) |
| Decimal | 14668129 |
| Display P3 | color(display-p3 0.875 0.820 0.380) |
Copy-ready code
/* CSS */
color: #dfd161;
background-color: #dfd161;
/* Tailwind (arbitrary) */
class="text-[#dfd161] bg-[#dfd161]"
/* SCSS */
$brand: #dfd161;
/* SwiftUI */
Color(red: 0.875, green: 0.820, blue: 0.380)
/* Android */
Color.parseColor("#dfd161")
/* Flutter */
Color(0xFFDFD161)
/* Python / OpenCV (BGR) */
(97, 209, 223)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #dfd161 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.
:root {
--brand-50: #FBFAF3;
--brand-100: #F8F6E8;
--brand-200: #F1EDCB;
--brand-300: #ECE4A2;
--brand-400: #dfd161;
--brand-500: #D9C944;
--brand-600: #CCB929;
--brand-700: #AA9B22;
--brand-800: #887C1B;
--brand-900: #635A18;
--brand-950: #3E380F;
--brand: #dfd161;
--brand-ink: #000000;
}Colors that work with #dfd161
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #dfd161
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | #616FDF | Directly opposite — maximum tension | |
| Analogous left | #DF9261 | Neighbour, quieter | |
| Analogous right | #AEDF61 | Neighbour, quieter | |
| Split-complement 1 | #61AEDF | Contrast without the clash | |
| Split-complement 2 | #9261DF | Contrast without the clash | |
| Triadic 1 | #61DFD1 | Even thirds — balanced and loud | |
| Triadic 2 | #D161DF | Even thirds — balanced and loud | |
| Tetradic | #61DF92 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#dfd161 text on a black background
contrast 13.43:1
#dfd161 text on a white background
contrast 1.56:1
CSS3 live lab
The quick brown fox
color: #dfd161;
background-color: #dfd161;
Glowing headline
text-shadow: 2px 2px 8px #dfd161;
Soft neon halo
text-shadow: 0 0 14px rgba(223, 209, 97, 0.45);
box-shadow: 0 12px 32px -8px rgba(223, 209, 97, 0.45);
border: 3px solid #dfd161; background: linear-gradient(135deg, #dfd161, #99DF61);
Monochromatic scale
Palettes built from #dfd161
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.
Closest color with a full write-up: Mustard (#ffdb58) — ΔE2000 6.8 away, with its history, psychology and brand usage.
#dfd161 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#dfd161, answered
What color is #dfd161?
#dfd161 is a balanced vivid yellow, closest to Khaki (ΔE2000 5.9). It sits at 53° on the hue wheel with 66% saturation and 63% lightness, which reads as warm.
What is the RGB value of #dfd161?
rgb(223, 209, 97) — 223 red, 209 green and 97 blue out of 255, or 87.5% / 82% / 38% by channel.
Is #dfd161 a light or a dark color?
It is a light color. Relative luminance is 0.6215 and perceived brightness is 80%, so black text on it reaches 13.43:1.
Should I use black or white text on #dfd161?
Black. It scores 13.43:1 against #dfd161, versus 1.56:1 for white — AAA at any size.
What is the complementary color of #dfd161?
#616FDF sits directly opposite on the wheel. Softer options are the split-complements #61AEDF and #9261DF, which give the same contrast with far less vibration.
What colors go well with #dfd161?
For interface work: #FAFAF4 as the surface, #EDE8C0 for borders, #9B924B for secondary text, #5D8DE3 as an accent and #6A6115 for hover and pressed states. For a palette, the analogous pair #DF9261 and #AEDF61 stays calm, while #616FDF is the loudest partner.
What is #dfd161 in CMYK for printing?
cmyk(0%, 6%, 57%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #dfd161 warm or cool?
Warm — it scores 19 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DFAB61; nudged cooler, #C0E15F.