NSColor+fromHex Easily create NSColor objects from hex colors in Swift Sample usage var hexColor = "#259B9A" NSColor.fromHex(hexColor) // returns an NSColor object: // `NSColor(calibratedRed: 0.145, green: 0.608, blue: 0.604, alpha: 1)`