Skip to content

#ebec5d

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

RGB
235, 236, 93
HSL
60°, 79%, 65%
CMYK
0, 0, 61, 8
Luminance
0.7844

At a glance

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

Hex
#ebec5d
Hue
60°
yellow
Saturation
79%
electric
Lightness
65%
balanced
Brightness
93%
HSV value
Perceived
88%
weighted brightness
Luminance
0.7844
WCAG relative
Temperature
Warm
25/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
16.69:1
Closest name
Khaki
ΔE2000 6.9
Where it sits
Hue60° of 360°
Saturation79%
Lightness65%
Temperature
Warm ← → Cool25% 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#ebec5d
RGBrgb(235, 236, 93)
HSLhsl(60, 79%, 65%)
CMYKcmyk(0%, 0%, 61%, 8%)
LABlab(91.0 -17.9 67.1)
LCHlch(91.0 69.4 104.9)
OKLCHoklch(0.916 0.162 109.6)
Decimal15461469
Display P3color(display-p3 0.922 0.925 0.365)

Copy-ready code

/* CSS */
color: #ebec5d;
background-color: #ebec5d;
/* Tailwind (arbitrary) */
class="text-[#ebec5d] bg-[#ebec5d]"
/* SCSS */
$brand: #ebec5d;
/* SwiftUI */
Color(red: 0.922, green: 0.925, blue: 0.365)
/* Android */
Color.parseColor("#ebec5d")
/* Flutter */
Color(0xFFEBEC5D)
/* Python / OpenCV (BGR) */
(93, 236, 235)

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 #ebec5d · 16.69:1
Use #000000AAA at every size.
Aa
White text · 1.26:1
AA fail · AA large fail · AAA fail
Aa
Black text · 16.69:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ebec5d as text scores 1.26:1 on white and 16.69:1 on black.

Accessibility — WCAG contrast

Aa
#ebec5d on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#ebec5d on black: 16.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FEE34C
deuteranopia · #FFE766
tritanopia · #FADECE

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ebec5d 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
#F5F5C7
#F3F39B
#ebec5d
#E6E736
#DADB1A
#B6B715
#919211
#696A11
#42420A
Base = 400Lightest = 50 · #FCFCF3Darkest = 950 · #42420A
:root {
  --brand-50: #FCFCF3;
  --brand-100: #F9F9E6;
  --brand-200: #F5F5C7;
  --brand-300: #F3F39B;
  --brand-400: #ebec5d;
  --brand-500: #E6E736;
  --brand-600: #DADB1A;
  --brand-700: #B6B715;
  --brand-800: #919211;
  --brand-900: #696A11;
  --brand-950: #42420A;
  --brand: #ebec5d;
  --brand-ink: #000000;
}

Colors that work with #ebec5d

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#ECEDC0
Hairlines and dividers
Muted text#9A9B4B
Captions on the surface
Accent#597EF0
Second voice, not a rival
Dark variant#71720D
Hover, pressed, headers
Light variant#FCFCE8
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 #ebec5d

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
  • 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
  • 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#5E5DEC
Analogous left#ECA55D
Analogous right#A4EC5D
Split-complement 1#5DA4EC
Split-complement 2#A55DEC
Triadic 1#5DEBEC
Triadic 2#EC5DEB
Tetradic#5DECA5

RGB percentages

Red92.2%
Green92.5%
Blue36.5%

CMYK percentages

Cyan0.4%
Magenta0.0%
Yellow60.6%
Key (black)7.5%

Color previews

#ebec5d text on a black background

contrast 16.69:1

Card sample

#ebec5d text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ebec5d

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.

#ebec5d 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
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ebec5d, answered

What color is #ebec5d?

#ebec5d is a balanced electric yellow, closest to Khaki (ΔE2000 6.9). It sits at 60° on the hue wheel with 79% saturation and 65% lightness, which reads as warm.

What is the RGB value of #ebec5d?

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

Is #ebec5d a light or a dark color?

It is a light color. Relative luminance is 0.7844 and perceived brightness is 88%, so black text on it reaches 16.69:1.

Should I use black or white text on #ebec5d?

Black. It scores 16.69:1 against #ebec5d, versus 1.26:1 for white — AAA at any size.

What is the complementary color of #ebec5d?

#5E5DEC sits directly opposite on the wheel. Softer options are the split-complements #5DA4EC and #A55DEC, which give the same contrast with far less vibration.

What colors go well with #ebec5d?

For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #9A9B4B for secondary text, #597EF0 as an accent and #71720D for hover and pressed states. For a palette, the analogous pair #ECA55D and #A4EC5D stays calm, while #5E5DEC is the loudest partner.

What is #ebec5d in CMYK for printing?

cmyk(0%, 0%, 61%, 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 #ebec5d warm or cool?

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

Work with #ebec5d in the Color Lab