view.wantsLayer = true
let myColor = NSColor(calibratedRed: 50.0/255.0, green: 50.0/255.0, blue: 50.0/255.0, alpha: 1.0) view.layer?.backgroundColor = myColor.cgColor
online RGB Value convert and use u code rgba and hex (https://hex2colorpicker.com)