Skip to content

#ecdf6d

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

RGB
236, 223, 109
HSL
54°, 77%, 68%
CMYK
0, 6, 54, 8
Luminance
0.7171

At a glance

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

Hex
#ecdf6d
Hue
54°
yellow
Saturation
77%
electric
Lightness
68%
light
Brightness
93%
HSV value
Perceived
85%
weighted brightness
Luminance
0.7171
WCAG relative
Temperature
Warm
20/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
15.34:1
Closest name
Khaki
ΔE2000 3.9
Where it sits
Hue54° of 360°
Saturation77%
Lightness68%
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#ecdf6d
RGBrgb(236, 223, 109)
HSLhsl(54, 77%, 68%)
CMYKcmyk(0%, 6%, 54%, 8%)
LABlab(87.8 -9.9 56.6)
LCHlch(87.8 57.5 99.9)
OKLCHoklch(0.892 0.136 102.8)
Decimal15523693
Display P3color(display-p3 0.925 0.875 0.427)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecdf6d on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#ecdf6d on black: 15.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F0D962
deuteranopia · #F4DF73
tritanopia · #FCD2C5

Color scale — 50 to 950

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

#FCFBF3
#F9F7E7
#F4F0C7
#F2E99C
#ecdf6d
#E5D438
#D9C51C
#B5A517
#908413
#696012
#413C0B
Base = 400Lightest = 50 · #FCFBF3Darkest = 950 · #413C0B
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F9F7E7;
  --brand-200: #F4F0C7;
  --brand-300: #F2E99C;
  --brand-400: #ecdf6d;
  --brand-500: #E5D438;
  --brand-600: #D9C51C;
  --brand-700: #B5A517;
  --brand-800: #908413;
  --brand-900: #696012;
  --brand-950: #413C0B;
  --brand: #ecdf6d;
  --brand-ink: #000000;
}

Colors that work with #ecdf6d

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#144FB8
Second voice, not a rival
Dark variant#71670F
Hover, pressed, headers
Light variant#FCFAE8
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 #ecdf6d

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#6D7AEC
Analogous left#EC9F6D
Analogous right#B9EC6D
Split-complement 1#6DB9EC
Split-complement 2#9F6DEC
Triadic 1#6DECDF
Triadic 2#DF6DEC
Tetradic#6DEC9F

RGB percentages

Red92.5%
Green87.5%
Blue42.7%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow53.8%
Key (black)7.5%

Color previews

#ecdf6d text on a black background

contrast 15.34:1

Card sample

#ecdf6d text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf6d

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.

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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ecdf6d, answered

What color is #ecdf6d?

#ecdf6d is a light electric yellow, closest to Khaki (ΔE2000 3.9). It sits at 54° on the hue wheel with 77% saturation and 68% lightness, which reads as warm.

What is the RGB value of #ecdf6d?

rgb(236, 223, 109) — 236 red, 223 green and 109 blue out of 255, or 92.5% / 87.5% / 42.7% by channel.

Is #ecdf6d a light or a dark color?

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

Should I use black or white text on #ecdf6d?

Black. It scores 15.34:1 against #ecdf6d, versus 1.37:1 for white — AAA at any size.

What is the complementary color of #ecdf6d?

#6D7AEC sits directly opposite on the wheel. Softer options are the split-complements #6DB9EC and #9F6DEC, which give the same contrast with far less vibration.

What colors go well with #ecdf6d?

For interface work: #FAFAF4 as the surface, #EDE8C0 for borders, #9B934B for secondary text, #144FB8 as an accent and #71670F for hover and pressed states. For a palette, the analogous pair #EC9F6D and #B9EC6D stays calm, while #6D7AEC is the loudest partner.

What is #ecdf6d in CMYK for printing?

cmyk(0%, 6%, 54%, 8%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #ecdf6d 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 #ECB86D; nudged cooler, #CBEE6B.

Work with #ecdf6d in the Color Lab