Skip to content

#dfd25b

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

RGB
223, 210, 91
HSL
54°, 67%, 62%
CMYK
0, 6, 59, 13
Luminance
0.6254

At a glance

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

Hex
#dfd25b
Hue
54°
yellow
Saturation
67%
vivid
Lightness
62%
balanced
Brightness
87%
HSV value
Perceived
80%
weighted brightness
Luminance
0.6254
WCAG relative
Temperature
Warm
20/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
13.51:1
Closest name
Khaki
ΔE2000 6.3
Where it sits
Hue54° of 360°
Saturation67%
Lightness62%
Temperature
Warm ← → Cool20% 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#dfd25b
RGBrgb(223, 210, 91)
HSLhsl(54, 67%, 62%)
CMYKcmyk(0%, 6%, 59%, 13%)
LABlab(83.2 -10.0 59.2)
LCHlch(83.2 60.0 99.6)
OKLCHoklch(0.852 0.140 103.1)
Decimal14668379
Display P3color(display-p3 0.875 0.824 0.357)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd25b on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#dfd25b on black: 13.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E3CC4E
deuteranopia · #E7D261
tritanopia · #EEC5B8

Color scale — 50 to 950

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

#FBFBF3
#F8F6E8
#F1EECA
#EDE5A1
#dfd25b
#DACB43
#CDBD28
#AB9D21
#897E1B
#635C17
#3E390F
Base = 400Lightest = 50 · #FBFBF3Darkest = 950 · #3E390F
:root {
  --brand-50: #FBFBF3;
  --brand-100: #F8F6E8;
  --brand-200: #F1EECA;
  --brand-300: #EDE5A1;
  --brand-400: #dfd25b;
  --brand-500: #DACB43;
  --brand-600: #CDBD28;
  --brand-700: #AB9D21;
  --brand-800: #897E1B;
  --brand-900: #635C17;
  --brand-950: #3E390F;
  --brand: #dfd25b;
  --brand-ink: #000000;
}

Colors that work with #dfd25b

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#EDE8C0
Hairlines and dividers
Muted text#9B934B
Captions on the surface
Accent#5788E3
Second voice, not a rival
Dark variant#6B6215
Hover, pressed, headers
Light variant#FBF9EA
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 #dfd25b

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#5B68DF
Analogous left#DF905B
Analogous right#AADF5B
Split-complement 1#5BAADF
Split-complement 2#905BDF
Triadic 1#5BDFD2
Triadic 2#D25BDF
Tetradic#5BDF90

RGB percentages

Red87.5%
Green82.4%
Blue35.7%

CMYK percentages

Cyan0.0%
Magenta5.8%
Yellow59.2%
Key (black)12.5%

Color previews

#dfd25b text on a black background

contrast 13.51:1

Card sample

#dfd25b text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 210, 91, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 210, 91, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd25b;
background: linear-gradient(135deg, #dfd25b, #94DF5B);

Monochromatic scale

Palettes built from #dfd25b

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.

#dfd25b 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

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

#dfd25b, answered

What color is #dfd25b?

#dfd25b is a balanced vivid yellow, closest to Khaki (ΔE2000 6.3). It sits at 54° on the hue wheel with 67% saturation and 62% lightness, which reads as warm.

What is the RGB value of #dfd25b?

rgb(223, 210, 91) — 223 red, 210 green and 91 blue out of 255, or 87.5% / 82.4% / 35.7% by channel.

Is #dfd25b a light or a dark color?

It is a light color. Relative luminance is 0.6254 and perceived brightness is 80%, so black text on it reaches 13.51:1.

Should I use black or white text on #dfd25b?

Black. It scores 13.51:1 against #dfd25b, versus 1.55:1 for white — AAA at any size.

What is the complementary color of #dfd25b?

#5B68DF sits directly opposite on the wheel. Softer options are the split-complements #5BAADF and #905BDF, which give the same contrast with far less vibration.

What colors go well with #dfd25b?

For interface work: #FAFAF4 as the surface, #EDE8C0 for borders, #9B934B for secondary text, #5788E3 as an accent and #6B6215 for hover and pressed states. For a palette, the analogous pair #DF905B and #AADF5B stays calm, while #5B68DF is the loudest partner.

What is #dfd25b in CMYK for printing?

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

Is #dfd25b warm or cool?

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

Work with #dfd25b in the Color Lab