Color converter: HEX, RGB and HSL
A designer gives you #FF6B35, your stylesheet wants hsl(). Type a colour code in ZakMachine Pro or pick a colour, and you get the same colour in every notation, with a preview alongside.
Pro This tool is part of ZakMachine Pro, a one-time purchase with no subscription.
How to read colour codes
- HEX writes red, green and blue as three hexadecimal pairs: #FF6B35 is red FF (255), green 6B (107) and blue 35 (53).
- RGB gives the same three channels as numbers from 0 to 255: rgb(255, 107, 53). HSL describes the colour as hue in degrees, saturation and lightness: hsl(16, 100%, 60%).
- Transparency (alpha) is the fourth value: #FF6B3580 or rgba(255, 107, 53, 0.5) is about 50% transparent.
Example: #FF6B35
#FF6B35 is rgb(255, 107, 53) and hsl(16, 100%, 60%). At 50% opacity it is #FF6B3580 or rgba(255, 107, 53, 0.5).
In ZakMachine: Color converter
Type #FF6B35, #F63, 0xFF6B35, rgb(…), rgba(…), hsl(…) or just 255, 107, 53, or pick a colour with the colour picker. You see a preview and the colour as HEX, RGB and HSL, with an opacity control and HEX with alpha. You copy any notation.
Frequently asked questions
What input does the tool understand?
HEX with 3, 6 or 8 characters (with or without #), rgb() and rgba(), hsl() and hsla(), and bare numbers such as 255, 107, 53. For an invalid code the tool says it is not a colour code.
Is this tool part of ZakMachine Pro?
Color converter is part of ZakMachine Pro: a one-time purchase, no subscription. Pro works on all your devices and can be shared with Family Sharing. Besides that, 10 tools are free.
ZakMachine for iPhone, iPad and Mac
Download ZakMachine for free on the App Store and unlock Pro with a one-time purchase.