A common way to solve issues of this sort is to use hsl values.
$links.on('mouseenter', function(e){
const colorTone = 360 * Math.random();
const colorSaturation = 50 + 80 * Math.random();
const colorLightness = 50 + 10 * Math.random();
var colorString = `hsl(${colorTone},${colorSaturation}%,${colorLightness}%`;
$('#whaouu').css('background-color',colorString);
});
just play around with the parameters a bit until you find colors you like.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…