Skip to content

#ebba1e

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

RGB
235, 186, 30
HSL
46°, 84%, 52%
CMYK
0, 21, 87, 8
Luminance
0.5287

At a glance

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

Hex
#ebba1e
Hue
46°
yellow
Saturation
84%
electric
Lightness
52%
balanced
Brightness
92%
HSV value
Perceived
75%
weighted brightness
Luminance
0.5287
WCAG relative
Temperature
Warm
13/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.57:1
Closest name
Goldenrod
ΔE2000 6
Where it sits
Hue46° of 360°
Saturation84%
Lightness52%
Temperature
Warm ← → Cool13% 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#ebba1e
RGBrgb(235, 186, 30)
HSLhsl(46, 84%, 52%)
CMYKcmyk(0%, 21%, 87%, 8%)
LABlab(77.8 4.8 75.6)
LCHlch(77.8 75.8 86.4)
OKLCHoklch(0.810 0.160 88.6)
Decimal15448606
Display P3color(display-p3 0.922 0.729 0.118)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ebba1e on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#ebba1e on black: 11.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D1B900
deuteranopia · #DDC62B
tritanopia · #FFA89F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ebba1e is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCFAF2
#FAF5E6
#F6EBC5
#F6DF98
#F1D064
#ebba1e
#E1B014
#BB9311
#96750D
#6C560E
#443609
Base = 500Lightest = 50 · #FCFAF2Darkest = 950 · #443609
:root {
  --brand-50: #FCFAF2;
  --brand-100: #FAF5E6;
  --brand-200: #F6EBC5;
  --brand-300: #F6DF98;
  --brand-400: #F1D064;
  --brand-500: #ebba1e;
  --brand-600: #E1B014;
  --brand-700: #BB9311;
  --brand-800: #96750D;
  --brand-900: #6C560E;
  --brand-950: #443609;
  --brand: #ebba1e;
  --brand-ink: #000000;
}

Colors that work with #ebba1e

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#EDE2C0
Hairlines and dividers
Muted text#9B884B
Captions on the surface
Accent#1982F0
Second voice, not a rival
Dark variant#755C0A
Hover, pressed, headers
Light variant#FDF8E8
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 #ebba1e

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#1E4FEB
Analogous left#EB541E
Analogous right#B5EB1E
Split-complement 1#1EB5EB
Split-complement 2#541EEB
Triadic 1#1EEBBA
Triadic 2#BA1EEB
Tetradic#1EEB54

RGB percentages

Red92.2%
Green72.9%
Blue11.8%

CMYK percentages

Cyan0.0%
Magenta20.9%
Yellow87.2%
Key (black)7.8%

Color previews

#ebba1e text on a black background

contrast 11.57:1

Card sample

#ebba1e text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ebba1e

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.

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

#ebba1e, answered

What color is #ebba1e?

#ebba1e is a balanced electric yellow, closest to Goldenrod (ΔE2000 6). It sits at 46° on the hue wheel with 84% saturation and 52% lightness, which reads as warm.

What is the RGB value of #ebba1e?

rgb(235, 186, 30) — 235 red, 186 green and 30 blue out of 255, or 92.2% / 72.9% / 11.8% by channel.

Is #ebba1e a light or a dark color?

It is a light color. Relative luminance is 0.5287 and perceived brightness is 75%, so black text on it reaches 11.57:1.

Should I use black or white text on #ebba1e?

Black. It scores 11.57:1 against #ebba1e, versus 1.81:1 for white — AAA at any size.

What is the complementary color of #ebba1e?

#1E4FEB sits directly opposite on the wheel. Softer options are the split-complements #1EB5EB and #541EEB, which give the same contrast with far less vibration.

What colors go well with #ebba1e?

For interface work: #FAF9F4 as the surface, #EDE2C0 for borders, #9B884B for secondary text, #1982F0 as an accent and #755C0A for hover and pressed states. For a palette, the analogous pair #EB541E and #B5EB1E stays calm, while #1E4FEB is the loudest partner.

What is #ebba1e in CMYK for printing?

cmyk(0%, 21%, 87%, 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 #ebba1e warm or cool?

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

Work with #ebba1e in the Color Lab