Skip to content

#eccb6f

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

RGB
236, 203, 111
HSL
44°, 77%, 68%
CMYK
0, 14, 53, 8
Luminance
0.6169

At a glance

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

Hex
#eccb6f
Hue
44°
yellow
Saturation
77%
electric
Lightness
68%
light
Brightness
93%
HSV value
Perceived
81%
weighted brightness
Luminance
0.6169
WCAG relative
Temperature
Warm
12/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
13.34:1
Closest name
Khaki
ΔE2000 8.4
Where it sits
Hue44° of 360°
Saturation77%
Lightness68%
Temperature
Warm ← → Cool12% 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#eccb6f
RGBrgb(236, 203, 111)
HSLhsl(44, 77%, 68%)
CMYKcmyk(0%, 14%, 53%, 8%)
LABlab(82.8 0.4 49.7)
LCHlch(82.8 49.7 89.5)
OKLCHoklch(0.852 0.118 90.1)
Decimal15518575
Display P3color(display-p3 0.925 0.796 0.435)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccb6f on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#eccb6f on black: 13.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DDC967
deuteranopia · #E5D272
tritanopia · #FDBEB6

Color scale — 50 to 950

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

#FCFAF3
#F9F4E7
#F4E8C7
#F2DB9C
#eccb6f
#E5B839
#D8A71D
#B48B18
#906F13
#685212
#41330B
Base = 400Lightest = 50 · #FCFAF3Darkest = 950 · #41330B
:root {
  --brand-50: #FCFAF3;
  --brand-100: #F9F4E7;
  --brand-200: #F4E8C7;
  --brand-300: #F2DB9C;
  --brand-400: #eccb6f;
  --brand-500: #E5B839;
  --brand-600: #D8A71D;
  --brand-700: #B48B18;
  --brand-800: #906F13;
  --brand-900: #685212;
  --brand-950: #41330B;
  --brand: #eccb6f;
  --brand-ink: #000000;
}

Colors that work with #eccb6f

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#FAF9F4
Tinted page background
Border#EDE1C0
Hairlines and dividers
Muted text#9B864B
Captions on the surface
Accent#1468B8
Second voice, not a rival
Dark variant#71570F
Hover, pressed, headers
Light variant#FCF7E8
Selected rows, tints
Dark surface#242014
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 #eccb6f

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#6F90EC
Analogous left#EC8C6F
Analogous right#CEEC6F
Split-complement 1#6FCEEC
Split-complement 2#8C6FEC
Triadic 1#6FECCB
Triadic 2#CB6FEC
Tetradic#6FEC8C

RGB percentages

Red92.5%
Green79.6%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta14.0%
Yellow53.0%
Key (black)7.5%

Color previews

#eccb6f text on a black background

contrast 13.34:1

Card sample

#eccb6f text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccb6f

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.

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

#eccb6f, answered

What color is #eccb6f?

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

What is the RGB value of #eccb6f?

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

Is #eccb6f a light or a dark color?

It is a light color. Relative luminance is 0.6169 and perceived brightness is 81%, so black text on it reaches 13.34:1.

Should I use black or white text on #eccb6f?

Black. It scores 13.34:1 against #eccb6f, versus 1.57:1 for white — AAA at any size.

What is the complementary color of #eccb6f?

#6F90EC sits directly opposite on the wheel. Softer options are the split-complements #6FCEEC and #8C6FEC, which give the same contrast with far less vibration.

What colors go well with #eccb6f?

For interface work: #FAF9F4 as the surface, #EDE1C0 for borders, #9B864B for secondary text, #1468B8 as an accent and #71570F for hover and pressed states. For a palette, the analogous pair #EC8C6F and #CEEC6F stays calm, while #6F90EC is the loudest partner.

What is #eccb6f in CMYK for printing?

cmyk(0%, 14%, 53%, 8%). 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 #eccb6f warm or cool?

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

Work with #eccb6f in the Color Lab