Skip to content

#ecf660

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

RGB
236, 246, 96
HSL
64°, 89%, 67%
CMYK
4, 0, 61, 4
Luminance
0.8459

At a glance

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

Hex
#ecf660
Hue
64°
yellow
Saturation
89%
electric
Lightness
67%
light
Brightness
96%
HSV value
Perceived
90%
weighted brightness
Luminance
0.8459
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.92:1
Closest name
Yellow
ΔE2000 6.6
Where it sits
Hue64° of 360°
Saturation89%
Lightness67%
Temperature
Warm ← → Cool28% 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#ecf660
RGBrgb(236, 246, 96)
HSLhsl(64, 89%, 67%)
CMYKcmyk(4%, 0%, 61%, 4%)
LABlab(93.7 -22.1 68.8)
LCHlch(93.7 72.3 107.8)
OKLCHoklch(0.938 0.170 112.8)
Decimal15529568
Display P3color(display-p3 0.925 0.965 0.376)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecf660 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#ecf660 on black: 17.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFEB4E
deuteranopia · #FFEF6A
tritanopia · #FBE8D7

Color scale — 50 to 950

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

#FCFDF2
#F9FBE5
#F5F8C4
#F2F995
#ecf660
#E6F32B
#D9E80D
#B5C10B
#919A09
#696F0B
#414607
Base = 400Lightest = 50 · #FCFDF2Darkest = 950 · #414607
:root {
  --brand-50: #FCFDF2;
  --brand-100: #F9FBE5;
  --brand-200: #F5F8C4;
  --brand-300: #F2F995;
  --brand-400: #ecf660;
  --brand-500: #E6F32B;
  --brand-600: #D9E80D;
  --brand-700: #B5C10B;
  --brand-800: #919A09;
  --brand-900: #696F0B;
  --brand-950: #414607;
  --brand: #ecf660;
  --brand-ink: #000000;
}

Colors that work with #ecf660

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#EAEDC0
Hairlines and dividers
Muted text#969B4B
Captions on the surface
Accent#5D7AF9
Second voice, not a rival
Dark variant#717907
Hover, pressed, headers
Light variant#FCFEE7
Selected rows, tints
Dark surface#232414
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 #ecf660

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#6A60F6
Analogous left#F6B560
Analogous right#A1F660
Split-complement 1#60A1F6
Split-complement 2#B560F6
Triadic 1#60ECF6
Triadic 2#F660EC
Tetradic#60F6B5

RGB percentages

Red92.5%
Green96.5%
Blue37.6%

CMYK percentages

Cyan4.1%
Magenta0.0%
Yellow61.0%
Key (black)3.5%

Color previews

#ecf660 text on a black background

contrast 17.92:1

Card sample

#ecf660 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 246, 96, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 246, 96, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecf660;
background: linear-gradient(135deg, #ecf660, #88F660);

Monochromatic scale

Palettes built from #ecf660

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.

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

#ecf660, answered

What color is #ecf660?

#ecf660 is a light electric yellow, closest to Yellow (ΔE2000 6.6). It sits at 64° on the hue wheel with 89% saturation and 67% lightness, which reads as warm.

What is the RGB value of #ecf660?

rgb(236, 246, 96) — 236 red, 246 green and 96 blue out of 255, or 92.5% / 96.5% / 37.6% by channel.

Is #ecf660 a light or a dark color?

It is a light color. Relative luminance is 0.8459 and perceived brightness is 90%, so black text on it reaches 17.92:1.

Should I use black or white text on #ecf660?

Black. It scores 17.92:1 against #ecf660, versus 1.17:1 for white — AAA at any size.

What is the complementary color of #ecf660?

#6A60F6 sits directly opposite on the wheel. Softer options are the split-complements #60A1F6 and #B560F6, which give the same contrast with far less vibration.

What colors go well with #ecf660?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #5D7AF9 as an accent and #717907 for hover and pressed states. For a palette, the analogous pair #F6B560 and #A1F660 stays calm, while #6A60F6 is the loudest partner.

What is #ecf660 in CMYK for printing?

cmyk(4%, 0%, 61%, 4%). 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 #ecf660 warm or cool?

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

Work with #ecf660 in the Color Lab