Skip to content

#eceb9a

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

RGB
236, 235, 154
HSL
59°, 68%, 77%
CMYK
0, 0, 35, 8
Luminance
0.7958

At a glance

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

Hex
#eceb9a
Hue
59°
yellow
Saturation
68%
vivid
Lightness
77%
light
Brightness
93%
HSV value
Perceived
89%
weighted brightness
Luminance
0.7958
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
16.92:1
Closest name
Khaki
ΔE2000 3.1
Where it sits
Hue59° of 360°
Saturation68%
Lightness77%
Temperature
Warm ← → Cool24% 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#eceb9a
RGBrgb(236, 235, 154)
HSLhsl(59, 68%, 77%)
CMYKcmyk(0%, 0%, 35%, 8%)
LABlab(91.5 -11.5 39.5)
LCHlch(91.5 41.1 106.3)
OKLCHoklch(0.923 0.102 107.6)
Decimal15526810
Display P3color(display-p3 0.925 0.922 0.604)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eceb9a on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#eceb9a on black: 16.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F8E594
deuteranopia · #F9E89D
tritanopia · #F7E1D7

Color scale — 50 to 950

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

#FBFBF3
#F8F8E8
#F2F1CA
#eceb9a
#E4E371
#DBDA42
#CECC27
#ACAA20
#89881A
#646317
#3E3E0E
Base = 300Lightest = 50 · #FBFBF3Darkest = 950 · #3E3E0E
:root {
  --brand-50: #FBFBF3;
  --brand-100: #F8F8E8;
  --brand-200: #F2F1CA;
  --brand-300: #eceb9a;
  --brand-400: #E4E371;
  --brand-500: #DBDA42;
  --brand-600: #CECC27;
  --brand-700: #ACAA20;
  --brand-800: #89881A;
  --brand-900: #646317;
  --brand-950: #3E3E0E;
  --brand: #eceb9a;
  --brand-ink: #000000;
}

Colors that work with #eceb9a

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#EDECC0
Hairlines and dividers
Muted text#9B9A4B
Captions on the surface
Accent#1D42AF
Second voice, not a rival
Dark variant#6B6A14
Hover, pressed, headers
Light variant#FBFBEA
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 #eceb9a

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#9A9BEC
Analogous left#ECC29A
Analogous right#C4EC9A
Split-complement 1#9AC4EC
Split-complement 2#C29AEC
Triadic 1#9AECEB
Triadic 2#EB9AEC
Tetradic#9AECC2

RGB percentages

Red92.5%
Green92.2%
Blue60.4%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow34.7%
Key (black)7.5%

Color previews

#eceb9a text on a black background

contrast 16.92:1

Card sample

#eceb9a text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eceb9a

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.

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

Converts to four-color process without much drama. Proof it anyway.

#eceb9a, answered

What color is #eceb9a?

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

What is the RGB value of #eceb9a?

rgb(236, 235, 154) — 236 red, 235 green and 154 blue out of 255, or 92.5% / 92.2% / 60.4% by channel.

Is #eceb9a a light or a dark color?

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

Should I use black or white text on #eceb9a?

Black. It scores 16.92:1 against #eceb9a, versus 1.24:1 for white — AAA at any size.

What is the complementary color of #eceb9a?

#9A9BEC sits directly opposite on the wheel. Softer options are the split-complements #9AC4EC and #C29AEC, which give the same contrast with far less vibration.

What colors go well with #eceb9a?

For interface work: #FAFAF4 as the surface, #EDECC0 for borders, #9B9A4B for secondary text, #1D42AF as an accent and #6B6A14 for hover and pressed states. For a palette, the analogous pair #ECC29A and #C4EC9A stays calm, while #9A9BEC is the loudest partner.

What is #eceb9a in CMYK for printing?

cmyk(0%, 0%, 35%, 8%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #eceb9a warm or cool?

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

Work with #eceb9a in the Color Lab