Skip to content

#bba40c

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

RGB
187, 164, 12
HSL
52°, 88%, 39%
CMYK
0, 12, 94, 27
Luminance
0.3714

At a glance

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

Hex
#bba40c
Hue
52°
yellow
Saturation
88%
electric
Lightness
39%
dark
Brightness
73%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3714
WCAG relative
Temperature
Warm
18/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
8.43:1
Closest name
Goldenrod
ΔE2000 8.7
Where it sits
Hue52° of 360°
Saturation88%
Lightness39%
Temperature
Warm ← → Cool18% 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#bba40c
RGBrgb(187, 164, 12)
HSLhsl(52, 88%, 39%)
CMYKcmyk(0%, 12%, 94%, 27%)
LABlab(67.4 -5.0 68.8)
LCHlch(67.4 69.0 94.2)
OKLCHoklch(0.717 0.146 99.0)
Decimal12297228
Display P3color(display-p3 0.733 0.643 0.047)

Copy-ready code

/* CSS */
color: #bba40c;
background-color: #bba40c;
/* Tailwind (arbitrary) */
class="text-[#bba40c] bg-[#bba40c]"
/* SCSS */
$brand: #bba40c;
/* SwiftUI */
Color(red: 0.733, green: 0.643, blue: 0.047)
/* Android */
Color.parseColor("#bba40c")
/* Flutter */
Color(0xFFBBA40C)
/* Python / OpenCV (BGR) */
(12, 164, 187)

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

Accessibility — WCAG contrast

Aa
#bba40c on white: 2.49:1
AA ✗ fail · AA-large · AAA
Aa
#bba40c on black: 8.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B6A000
deuteranopia · #BCA81F
tritanopia · #CB968B

Color scale — 50 to 950

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

#FDFBF2
#FAF8E5
#F8F1C4
#F8EB96
#F5E161
#F1D72C
#E6CA0F
#bba40c
#99860A
#6F620C
#453D07
Base = 700Lightest = 50 · #FDFBF2Darkest = 950 · #453D07
:root {
  --brand-50: #FDFBF2;
  --brand-100: #FAF8E5;
  --brand-200: #F8F1C4;
  --brand-300: #F8EB96;
  --brand-400: #F5E161;
  --brand-500: #F1D72C;
  --brand-600: #E6CA0F;
  --brand-700: #bba40c;
  --brand-800: #99860A;
  --brand-900: #6F620C;
  --brand-950: #453D07;
  --brand: #bba40c;
  --brand-ink: #000000;
}

Colors that work with #bba40c

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#9B904B
Captions on the surface
Accent#084EBF
Second voice, not a rival
Dark variant#786908
Hover, pressed, headers
Light variant#FDFBE7
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 #bba40c

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black 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#0C23BB
Analogous left#BB4C0C
Analogous right#7ABB0C
Split-complement 1#0C7ABB
Split-complement 2#4C0CBB
Triadic 1#0CBBA4
Triadic 2#A40CBB
Tetradic#0CBB4C

RGB percentages

Red73.3%
Green64.3%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta12.3%
Yellow93.6%
Key (black)26.7%

Color previews

#bba40c text on a black background

contrast 8.43:1

Card sample

#bba40c text on a white background

contrast 2.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(187, 164, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 164, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bba40c;
background: linear-gradient(135deg, #bba40c, #5DBB0C);

Monochromatic scale

Palettes built from #bba40c

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.

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

#bba40c, answered

What color is #bba40c?

#bba40c is a dark electric yellow, closest to Goldenrod (ΔE2000 8.7). It sits at 52° on the hue wheel with 88% saturation and 39% lightness, which reads as warm.

What is the RGB value of #bba40c?

rgb(187, 164, 12) — 187 red, 164 green and 12 blue out of 255, or 73.3% / 64.3% / 4.7% by channel.

Is #bba40c a light or a dark color?

It is a mid-tone. Relative luminance is 0.3714 and perceived brightness is 64%, so black text on it reaches 8.43:1.

Should I use black or white text on #bba40c?

Black. It scores 8.43:1 against #bba40c, versus 2.49:1 for white — AAA at any size.

What is the complementary color of #bba40c?

#0C23BB sits directly opposite on the wheel. Softer options are the split-complements #0C7ABB and #4C0CBB, which give the same contrast with far less vibration.

What colors go well with #bba40c?

For interface work: #FAFAF4 as the surface, #EDE7C0 for borders, #9B904B for secondary text, #084EBF as an accent and #786908 for hover and pressed states. For a palette, the analogous pair #BB4C0C and #7ABB0C stays calm, while #0C23BB is the loudest partner.

What is #bba40c in CMYK for printing?

cmyk(0%, 12%, 94%, 27%). 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 #bba40c warm or cool?

Warm — it scores 18 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BB780C; nudged cooler, #93BD0A.

Work with #bba40c in the Color Lab