Skip to content

#ecf06f

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

RGB
236, 240, 111
HSL
62°, 81%, 69%
CMYK
2, 0, 54, 6
Luminance
0.8130

At a glance

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

Hex
#ecf06f
Hue
62°
yellow
Saturation
81%
electric
Lightness
69%
light
Brightness
94%
HSV value
Perceived
89%
weighted brightness
Luminance
0.8130
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.26:1
Closest name
Khaki
ΔE2000 6
Where it sits
Hue62° of 360°
Saturation81%
Lightness69%
Temperature
Warm ← → Cool27% 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#ecf06f
RGBrgb(236, 240, 111)
HSLhsl(62, 81%, 69%)
CMYKcmyk(2%, 0%, 54%, 6%)
LABlab(92.3 -18.1 60.8)
LCHlch(92.3 63.5 106.6)
OKLCHoklch(0.927 0.151 110.6)
Decimal15528047
Display P3color(display-p3 0.925 0.941 0.435)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecf06f on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#ecf06f on black: 17.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE762
deuteranopia · #FFEB76
tritanopia · #FAE3D3

Color scale — 50 to 950

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

#FCFCF3
#F9F9E6
#F4F6C6
#F2F499
#ecf06f
#E4EA34
#D7DE17
#B3B913
#90940F
#686B10
#41430A
Base = 400Lightest = 50 · #FCFCF3Darkest = 950 · #41430A
:root {
  --brand-50: #FCFCF3;
  --brand-100: #F9F9E6;
  --brand-200: #F4F6C6;
  --brand-300: #F2F499;
  --brand-400: #ecf06f;
  --brand-500: #E4EA34;
  --brand-600: #D7DE17;
  --brand-700: #B3B913;
  --brand-800: #90940F;
  --brand-900: #686B10;
  --brand-950: #41430A;
  --brand: #ecf06f;
  --brand-ink: #000000;
}

Colors that work with #ecf06f

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#EBEDC0
Hairlines and dividers
Muted text#989B4B
Captions on the surface
Accent#6C89F3
Second voice, not a rival
Dark variant#70730C
Hover, pressed, headers
Light variant#FCFDE8
Selected rows, tints
Dark surface#242414
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 #ecf06f

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#736FF0
Analogous left#F0B46F
Analogous right#ABF06F
Split-complement 1#6FABF0
Split-complement 2#B46FF0
Triadic 1#6FECF0
Triadic 2#F06FEC
Tetradic#6FF0B4

RGB percentages

Red92.5%
Green94.1%
Blue43.5%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow53.8%
Key (black)5.9%

Color previews

#ecf06f text on a black background

contrast 17.26:1

Card sample

#ecf06f text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecf06f

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.

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

#ecf06f, answered

What color is #ecf06f?

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

What is the RGB value of #ecf06f?

rgb(236, 240, 111) — 236 red, 240 green and 111 blue out of 255, or 92.5% / 94.1% / 43.5% by channel.

Is #ecf06f a light or a dark color?

It is a light color. Relative luminance is 0.8130 and perceived brightness is 89%, so black text on it reaches 17.26:1.

Should I use black or white text on #ecf06f?

Black. It scores 17.26:1 against #ecf06f, versus 1.22:1 for white — AAA at any size.

What is the complementary color of #ecf06f?

#736FF0 sits directly opposite on the wheel. Softer options are the split-complements #6FABF0 and #B46FF0, which give the same contrast with far less vibration.

What colors go well with #ecf06f?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #989B4B for secondary text, #6C89F3 as an accent and #70730C for hover and pressed states. For a palette, the analogous pair #F0B46F and #ABF06F stays calm, while #736FF0 is the loudest partner.

What is #ecf06f in CMYK for printing?

cmyk(2%, 0%, 54%, 6%). 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 #ecf06f warm or cool?

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

Work with #ecf06f in the Color Lab