About HexLab Color Tool
HexLab is a browser-based color tool designed for web developers, UI/UX designers and front-end engineers who regularly work with color values in CSS, HTML and design tools. Color codes appear in three main formats in web work: HEX (like #2F62DE), RGB (like rgb(47, 98, 222)) and HSL (like hsl(225, 70%, 53%)). Each format has its use, and being able to convert between them instantly saves time when translating between a design spec and CSS code.
The visual canvas picker lets you click or drag to select any color, with the hue slider below controlling the base hue. This is faster than opening Photoshop or Figma just to grab a color value. The RGB and HSL mixer cards let you build colors by adjusting individual channel sliders, which makes it intuitive to lighten, darken, saturate or shift the hue of a color by feel rather than calculation.
Common Use Cases
- CSS color conversion. A design tool gives you RGB values but your CSS variable needs HEX. Paste the RGB values in and copy the HEX output instantly.
- Dark mode palette. Use the HSL mixer to create dark mode variants of your brand colors by reducing the lightness while keeping the hue and saturation consistent.
- Accessibility checks. Use the visual picker to find a color with better contrast by adjusting lightness in the HSL mixer until the foreground and background combination meets WCAG standards.
- Brand color verification. Verify that a color used in a web page matches the exact brand HEX value by converting from the inspected RGB values shown in browser dev tools.