Skip to content

#ebda5f

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

RGB
235, 218, 95
HSL
53°, 78%, 65%
CMYK
0, 7, 60, 8
Luminance
0.6863

At a glance

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

Hex
#ebda5f
Hue
53°
yellow
Saturation
78%
electric
Lightness
65%
balanced
Brightness
92%
HSV value
Perceived
84%
weighted brightness
Luminance
0.6863
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
14.73:1
Closest name
Khaki
ΔE2000 5.6
Where it sits
Hue53° of 360°
Saturation78%
Lightness65%
Temperature
Warm ← → Cool19% 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#ebda5f
RGBrgb(235, 218, 95)
HSLhsl(53, 78%, 65%)
CMYKcmyk(0%, 7%, 60%, 8%)
LABlab(86.3 -8.8 61.2)
LCHlch(86.3 61.8 98.2)
OKLCHoklch(0.879 0.143 101.5)
Decimal15456863
Display P3color(display-p3 0.922 0.855 0.373)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ebda5f on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#ebda5f on black: 14.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #ECD452
deuteranopia · #F1DB65
tritanopia · #FBCCBF

Color scale — 50 to 950

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

#FCFBF3
#F9F7E6
#F5EFC7
#F3E89B
#ebda5f
#E6D138
#DAC21B
#B5A217
#918212
#695E11
#423B0B
Base = 400Lightest = 50 · #FCFBF3Darkest = 950 · #423B0B
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F9F7E6;
  --brand-200: #F5EFC7;
  --brand-300: #F3E89B;
  --brand-400: #ebda5f;
  --brand-500: #E6D138;
  --brand-600: #DAC21B;
  --brand-700: #B5A217;
  --brand-800: #918212;
  --brand-900: #695E11;
  --brand-950: #423B0B;
  --brand: #ebda5f;
  --brand-ink: #000000;
}

Colors that work with #ebda5f

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#EDE7C0
Hairlines and dividers
Muted text#9B914B
Captions on the surface
Accent#1250BA
Second voice, not a rival
Dark variant#71650E
Hover, pressed, headers
Light variant#FCFAE8
Selected rows, tints
Dark surface#242214
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 #ebda5f

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#5F70EB
Analogous left#EB945F
Analogous right#B6EB5F
Split-complement 1#5FB6EB
Split-complement 2#945FEB
Triadic 1#5FEBDA
Triadic 2#DA5FEB
Tetradic#5FEB94

RGB percentages

Red92.2%
Green85.5%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta7.2%
Yellow59.6%
Key (black)7.8%

Color previews

#ebda5f text on a black background

contrast 14.73:1

Card sample

#ebda5f text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(235, 218, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(235, 218, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ebda5f;
background: linear-gradient(135deg, #ebda5f, #9FEB5F);

Monochromatic scale

Palettes built from #ebda5f

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.

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

#ebda5f, answered

What color is #ebda5f?

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

What is the RGB value of #ebda5f?

rgb(235, 218, 95) — 235 red, 218 green and 95 blue out of 255, or 92.2% / 85.5% / 37.3% by channel.

Is #ebda5f a light or a dark color?

It is a light color. Relative luminance is 0.6863 and perceived brightness is 84%, so black text on it reaches 14.73:1.

Should I use black or white text on #ebda5f?

Black. It scores 14.73:1 against #ebda5f, versus 1.43:1 for white — AAA at any size.

What is the complementary color of #ebda5f?

#5F70EB sits directly opposite on the wheel. Softer options are the split-complements #5FB6EB and #945FEB, which give the same contrast with far less vibration.

What colors go well with #ebda5f?

For interface work: #FAFAF4 as the surface, #EDE7C0 for borders, #9B914B for secondary text, #1250BA as an accent and #71650E for hover and pressed states. For a palette, the analogous pair #EB945F and #B6EB5F stays calm, while #5F70EB is the loudest partner.

What is #ebda5f in CMYK for printing?

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

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

Work with #ebda5f in the Color Lab