Skip to content

#ecf55f

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

RGB
236, 245, 95
HSL
64°, 88%, 67%
CMYK
4, 0, 61, 4
Luminance
0.8396

At a glance

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

Hex
#ecf55f
Hue
64°
yellow
Saturation
88%
electric
Lightness
67%
light
Brightness
96%
HSV value
Perceived
90%
weighted brightness
Luminance
0.8396
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.79:1
Closest name
Yellow
ΔE2000 6.5
Where it sits
Hue64° of 360°
Saturation88%
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#ecf55f
RGBrgb(236, 245, 95)
HSLhsl(64, 88%, 67%)
CMYKcmyk(4%, 0%, 61%, 4%)
LABlab(93.4 -21.7 68.9)
LCHlch(93.4 72.2 107.4)
OKLCHoklch(0.936 0.170 112.5)
Decimal15529311
Display P3color(display-p3 0.925 0.961 0.373)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecf55f on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#ecf55f on black: 17.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFEA4C
deuteranopia · #FFEE69
tritanopia · #FBE7D6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ecf55f 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
#F9FAE5
#F5F8C4
#F2F895
#ecf55f
#E6F22C
#D9E60E
#B5C00C
#919A0A
#696F0C
#424507
Base = 400Lightest = 50 · #FCFDF2Darkest = 950 · #424507
:root {
  --brand-50: #FCFDF2;
  --brand-100: #F9FAE5;
  --brand-200: #F5F8C4;
  --brand-300: #F2F895;
  --brand-400: #ecf55f;
  --brand-500: #E6F22C;
  --brand-600: #D9E60E;
  --brand-700: #B5C00C;
  --brand-800: #919A0A;
  --brand-900: #696F0C;
  --brand-950: #424507;
  --brand: #ecf55f;
  --brand-ink: #000000;
}

Colors that work with #ecf55f

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#5C7AF8
Second voice, not a rival
Dark variant#717808
Hover, pressed, headers
Light variant#FCFDE7
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 #ecf55f

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#685FF5
Analogous left#F5B35F
Analogous right#A1F55F
Split-complement 1#5FA1F5
Split-complement 2#B35FF5
Triadic 1#5FECF5
Triadic 2#F55FEC
Tetradic#5FF5B3

RGB percentages

Red92.5%
Green96.1%
Blue37.3%

CMYK percentages

Cyan3.7%
Magenta0.0%
Yellow61.2%
Key (black)3.9%

Color previews

#ecf55f text on a black background

contrast 17.79:1

Card sample

#ecf55f text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecf55f

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.

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

#ecf55f, answered

What color is #ecf55f?

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

What is the RGB value of #ecf55f?

rgb(236, 245, 95) — 236 red, 245 green and 95 blue out of 255, or 92.5% / 96.1% / 37.3% by channel.

Is #ecf55f a light or a dark color?

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

Should I use black or white text on #ecf55f?

Black. It scores 17.79:1 against #ecf55f, versus 1.18:1 for white — AAA at any size.

What is the complementary color of #ecf55f?

#685FF5 sits directly opposite on the wheel. Softer options are the split-complements #5FA1F5 and #B35FF5, which give the same contrast with far less vibration.

What colors go well with #ecf55f?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #5C7AF8 as an accent and #717808 for hover and pressed states. For a palette, the analogous pair #F5B35F and #A1F55F stays calm, while #685FF5 is the loudest partner.

What is #ecf55f 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 #ecf55f 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 #F5C75F; nudged cooler, #B5F75D.

Work with #ecf55f in the Color Lab