Skip to content

#ecfd8d

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

RGB
236, 253, 141
HSL
69°, 97%, 77%
CMYK
7, 0, 44, 1
Luminance
0.9001

At a glance

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

Hex
#ecfd8d
Hue
69°
yellow
Saturation
97%
electric
Lightness
77%
light
Brightness
99%
HSV value
Perceived
93%
weighted brightness
Luminance
0.9001
WCAG relative
Temperature
Warm
33/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
19.00:1
Closest name
Khaki
ΔE2000 7.7
Where it sits
Hue69° of 360°
Saturation97%
Lightness77%
Temperature
Warm ← → Cool33% 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#ecfd8d
RGBrgb(236, 253, 141)
HSLhsl(69, 97%, 77%)
CMYKcmyk(7%, 0%, 44%, 1%)
LABlab(96.0 -21.7 51.5)
LCHlch(96.0 55.9 112.8)
OKLCHoklch(0.958 0.138 116.2)
Decimal15531405
Display P3color(display-p3 0.925 0.992 0.553)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecfd8d on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#ecfd8d on black: 19.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFF384
deuteranopia · #FFF493
tritanopia · #F7F2E2

Color scale — 50 to 950

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

#FCFDF1
#F8FCE4
#F2FBC1
#ecfd8d
#E3FC5A
#DAFB22
#CDF104
#ABC903
#89A003
#637407
#3E4804
Base = 300Lightest = 50 · #FCFDF1Darkest = 950 · #3E4804
:root {
  --brand-50: #FCFDF1;
  --brand-100: #F8FCE4;
  --brand-200: #F2FBC1;
  --brand-300: #ecfd8d;
  --brand-400: #E3FC5A;
  --brand-500: #DAFB22;
  --brand-600: #CDF104;
  --brand-700: #ABC903;
  --brand-800: #89A003;
  --brand-900: #637407;
  --brand-950: #3E4804;
  --brand: #ecfd8d;
  --brand-ink: #000000;
}

Colors that work with #ecfd8d

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#F9FAF4
Tinted page background
Border#E6EDC0
Hairlines and dividers
Muted text#8F9B4B
Captions on the surface
Accent#0015CC
Second voice, not a rival
Dark variant#6B7D02
Hover, pressed, headers
Light variant#FBFFE6
Selected rows, tints
Dark surface#222414
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 #ecfd8d

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#9E8DFD
Analogous left#FDD68D
Analogous right#B4FD8D
Split-complement 1#8DB4FD
Split-complement 2#D68DFD
Triadic 1#8DECFD
Triadic 2#FD8DEC
Tetradic#8DFDD6

RGB percentages

Red92.5%
Green99.2%
Blue55.3%

CMYK percentages

Cyan6.7%
Magenta0.0%
Yellow44.3%
Key (black)0.8%

Color previews

#ecfd8d text on a black background

contrast 19.00:1

Card sample

#ecfd8d text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecfd8d

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.

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

#ecfd8d, answered

What color is #ecfd8d?

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

What is the RGB value of #ecfd8d?

rgb(236, 253, 141) — 236 red, 253 green and 141 blue out of 255, or 92.5% / 99.2% / 55.3% by channel.

Is #ecfd8d a light or a dark color?

It is a light color. Relative luminance is 0.9001 and perceived brightness is 93%, so black text on it reaches 19.00:1.

Should I use black or white text on #ecfd8d?

Black. It scores 19.00:1 against #ecfd8d, versus 1.11:1 for white — AAA at any size.

What is the complementary color of #ecfd8d?

#9E8DFD sits directly opposite on the wheel. Softer options are the split-complements #8DB4FD and #D68DFD, which give the same contrast with far less vibration.

What colors go well with #ecfd8d?

For interface work: #F9FAF4 as the surface, #E6EDC0 for borders, #8F9B4B for secondary text, #0015CC as an accent and #6B7D02 for hover and pressed states. For a palette, the analogous pair #FDD68D and #B4FD8D stays calm, while #9E8DFD is the loudest partner.

What is #ecfd8d in CMYK for printing?

cmyk(7%, 0%, 44%, 1%). 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 #ecfd8d warm or cool?

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

Work with #ecfd8d in the Color Lab