Scroll down to the middle of Post #2. 3 pics shows the back of a gauge bolted to the gauge bracket, and how they bolt to the cup. The cables go into the bucket this should just be a Back, (B), and Blue, (L),. The Blue Black wires are probably bullet connectors, black to any black 3 way female bullet connector and Blue to a matching blue female bullet connector, proberbly a double female bullet connector.................Not sure what year, but some of the later 76-78 Speedo's have a Signal canceler built into the gauge. This has a Black and White/Green wire. No need to hook these up.
http://www.xs650.com/threads/70-83-...damper-replacement-replace-face-decals.52013/
Post #2 has a bit more detail
http://www.xs650.com/threads/speedo-access-to-bulb.42738/#post-426644
Any Speedo from 76-83 will bolt straight into your gauge bracket. Speedo's 76-78 Standards are basically the same and will match your Rev counter
76, second pic is a 76 on my 80 Special.......................................77D...............................................78E
View attachment 126298 View attachment 126299View attachment 126300View attachment 126301
Speedo's changed faces from 78Specials, (not 78 Standard) and 79Specials then in 80 they went to a 50MPH max
79 Standard...............................78/79Specials..............................80-83 Specials
View attachment 126302 View attachment 126303 View attachment 126304
80SG bucket showing the wiring. Note the Blue, (L), wires in the center and how they connect to a double Bullet connector. These are from the gauges and are the Gauge lights.
View attachment 126306