Skip to content

#ecdb8f

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

RGB
236, 219, 143
HSL
49°, 71%, 74%
CMYK
0, 7, 39, 8
Luminance
0.7048

At a glance

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

Hex
#ecdb8f
Hue
49°
yellow
Saturation
71%
vivid
Lightness
74%
light
Brightness
93%
HSV value
Perceived
85%
weighted brightness
Luminance
0.7048
WCAG relative
Temperature
Warm
16/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
15.10:1
Closest name
Khaki
ΔE2000 3.7
Where it sits
Hue49° of 360°
Saturation71%
Lightness74%
Temperature
Warm ← → Cool16% 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#ecdb8f
RGBrgb(236, 219, 143)
HSLhsl(49, 71%, 74%)
CMYKcmyk(0%, 7%, 39%, 8%)
LABlab(87.2 -4.7 39.5)
LCHlch(87.2 39.8 96.8)
OKLCHoklch(0.888 0.098 97.1)
Decimal15522703
Display P3color(display-p3 0.925 0.859 0.561)

Copy-ready code

/* CSS */
color: #ecdb8f;
background-color: #ecdb8f;
/* Tailwind (arbitrary) */
class="text-[#ecdb8f] bg-[#ecdb8f]"
/* SCSS */
$brand: #ecdb8f;
/* SwiftUI */
Color(red: 0.925, green: 0.859, blue: 0.561)
/* Android */
Color.parseColor("#ecdb8f")
/* Flutter */
Color(0xFFECDB8F)
/* Python / OpenCV (BGR) */
(143, 219, 236)

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 #ecdb8f · 15.10:1
Use #000000AAA at every size.
Aa
White text · 1.39:1
AA fail · AA large fail · AAA fail
Aa
Black text · 15.10:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ecdb8f as text scores 1.39:1 on white and 15.10:1 on black.

Accessibility — WCAG contrast

Aa
#ecdb8f on white: 1.39:1
AA ✗ fail · AA-large · AAA
Aa
#ecdb8f on black: 15.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E9D789
deuteranopia · #EEDD92
tritanopia · #F9D0C8

Color scale — 50 to 950

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

#FCFAF3
#F8F5E7
#F3EBC9
#ecdb8f
#E7D16F
#DEC13F
#D1B123
#AE941E
#8C7618
#655715
#3F360D
Base = 300Lightest = 50 · #FCFAF3Darkest = 950 · #3F360D
:root {
  --brand-50: #FCFAF3;
  --brand-100: #F8F5E7;
  --brand-200: #F3EBC9;
  --brand-300: #ecdb8f;
  --brand-400: #E7D16F;
  --brand-500: #DEC13F;
  --brand-600: #D1B123;
  --brand-700: #AE941E;
  --brand-800: #8C7618;
  --brand-900: #655715;
  --brand-950: #3F360D;
  --brand: #ecdb8f;
  --brand-ink: #000000;
}

Colors that work with #ecdb8f

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#FAF9F4
Tinted page background
Border#EDE4C0
Hairlines and dividers
Muted text#9B8C4B
Captions on the surface
Accent#195CB3
Second voice, not a rival
Dark variant#6D5C12
Hover, pressed, headers
Light variant#FBF8E9
Selected rows, tints
Dark surface#242114
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 #ecdb8f

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#8FA0EC
Analogous left#ECAC8F
Analogous right#CFEC8F
Split-complement 1#8FCFEC
Split-complement 2#AC8FEC
Triadic 1#8FECDB
Triadic 2#DB8FEC
Tetradic#8FECAC

RGB percentages

Red92.5%
Green85.9%
Blue56.1%

CMYK percentages

Cyan0.0%
Magenta7.2%
Yellow39.4%
Key (black)7.5%

Color previews

#ecdb8f text on a black background

contrast 15.10:1

Card sample

#ecdb8f text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 219, 143, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 219, 143, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecdb8f;
background: linear-gradient(135deg, #ecdb8f, #BFEC8F);

Monochromatic scale

Palettes built from #ecdb8f

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.

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

#ecdb8f, answered

What color is #ecdb8f?

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

What is the RGB value of #ecdb8f?

rgb(236, 219, 143) — 236 red, 219 green and 143 blue out of 255, or 92.5% / 85.9% / 56.1% by channel.

Is #ecdb8f a light or a dark color?

It is a light color. Relative luminance is 0.7048 and perceived brightness is 85%, so black text on it reaches 15.10:1.

Should I use black or white text on #ecdb8f?

Black. It scores 15.10:1 against #ecdb8f, versus 1.39:1 for white — AAA at any size.

What is the complementary color of #ecdb8f?

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

What colors go well with #ecdb8f?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8C4B for secondary text, #195CB3 as an accent and #6D5C12 for hover and pressed states. For a palette, the analogous pair #ECAC8F and #CFEC8F stays calm, while #8FA0EC is the loudest partner.

What is #ecdb8f in CMYK for printing?

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

Is #ecdb8f warm or cool?

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

Work with #ecdb8f in the Color Lab