Skip to content

#dfd88c

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

RGB
223, 216, 140
HSL
55°, 57%, 71%
CMYK
0, 3, 37, 13
Luminance
0.6669

At a glance

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

Hex
#dfd88c
Hue
55°
yellow
Saturation
57%
vivid
Lightness
71%
light
Brightness
87%
HSV value
Perceived
83%
weighted brightness
Luminance
0.6669
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
14.34:1
Closest name
Khaki
ΔE2000 4
Where it sits
Hue55° of 360°
Saturation57%
Lightness71%
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#dfd88c
RGBrgb(223, 216, 140)
HSLhsl(55, 57%, 71%)
CMYKcmyk(0%, 3%, 37%, 13%)
LABlab(85.3 -8.6 38.4)
LCHlch(85.3 39.3 102.6)
OKLCHoklch(0.871 0.097 103.7)
Decimal14669964
Display P3color(display-p3 0.875 0.847 0.549)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd88c on white: 1.46:1
AA ✗ fail · AA-large · AAA
Aa
#dfd88c on black: 14.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E5D386
deuteranopia · #E7D78F
tritanopia · #EBCEC5

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #dfd88c 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
#F6F5E9
#EEECCD
#E7E1A7
#dfd88c
#CEC34F
#C0B435
#A0962C
#807823
#5D581D
#3A3712
Base = 400Lightest = 50 · #FBFAF4Darkest = 950 · #3A3712
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F6F5E9;
  --brand-200: #EEECCD;
  --brand-300: #E7E1A7;
  --brand-400: #dfd88c;
  --brand-500: #CEC34F;
  --brand-600: #C0B435;
  --brand-700: #A0962C;
  --brand-800: #807823;
  --brand-900: #5D581D;
  --brand-950: #3A3712;
  --brand: #dfd88c;
  --brand-ink: #000000;
}

Colors that work with #dfd88c

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#2852A4
Second voice, not a rival
Dark variant#645E1C
Hover, pressed, headers
Light variant#F9F8EB
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 #dfd88c

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#8C93DF
Analogous left#DFAF8C
Analogous right#BDDF8C
Split-complement 1#8CBDDF
Split-complement 2#AF8CDF
Triadic 1#8CDFD8
Triadic 2#D88CDF
Tetradic#8CDFAF

RGB percentages

Red87.5%
Green84.7%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta3.1%
Yellow37.2%
Key (black)12.5%

Color previews

#dfd88c text on a black background

contrast 14.34:1

Card sample

#dfd88c text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd88c

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.

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

#dfd88c, answered

What color is #dfd88c?

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

What is the RGB value of #dfd88c?

rgb(223, 216, 140) — 223 red, 216 green and 140 blue out of 255, or 87.5% / 84.7% / 54.9% by channel.

Is #dfd88c a light or a dark color?

It is a light color. Relative luminance is 0.6669 and perceived brightness is 83%, so black text on it reaches 14.34:1.

Should I use black or white text on #dfd88c?

Black. It scores 14.34:1 against #dfd88c, versus 1.46:1 for white — AAA at any size.

What is the complementary color of #dfd88c?

#8C93DF sits directly opposite on the wheel. Softer options are the split-complements #8CBDDF and #AF8CDF, which give the same contrast with far less vibration.

What colors go well with #dfd88c?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #2852A4 as an accent and #645E1C for hover and pressed states. For a palette, the analogous pair #DFAF8C and #BDDF8C stays calm, while #8C93DF is the loudest partner.

What is #dfd88c in CMYK for printing?

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

Is #dfd88c 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 #DFBA8C; nudged cooler, #C8E18B.

Work with #dfd88c in the Color Lab