Color Picker
Pick any color and get its HEX, RGB, and HSL values. Convert between formats instantly.
CSS Variables
Contrast Preview
Free Online Color Picker and Converter
The Toolts Color Picker lets you select any color and instantly see its representation in the three most commonly used web color formats: HEX, RGB, and HSL. You can pick a color visually using the native color picker, adjust individual RGB channels with sliders, or type a HEX value directly. All conversions happen instantly in your browser.
Understanding Color Formats
HEX (hexadecimal) is the most widely used color format in web development. A HEX color consists of a hash symbol followed by six hexadecimal digits, where the first two represent red, the middle two represent green, and the last two represent blue. Each pair ranges from 00 (none) to FF (maximum). For example, #FF0000 is pure red, #00FF00 is pure green, and #0000FF is pure blue.
RGB (Red, Green, Blue) represents colors as three decimal values ranging from 0 to 255. It describes the same color space as HEX but in a format that is easier for calculations and color manipulation in JavaScript and CSS animations. For example, rgb(255, 0, 0) is the same pure red as #FF0000.
HSL (Hue, Saturation, Lightness) describes color in terms that are more intuitive for humans. Hue is the color angle on the color wheel (0° is red, 120° is green, 240° is blue). Saturation controls color intensity from gray (0%) to vivid (100%). Lightness ranges from black (0%) to white (100%) with the pure color at 50%. HSL makes it easy to create color variations — adjust lightness for tints and shades, or reduce saturation for muted tones.
Choosing Colors for Web Design
When selecting colors for a website or application, consider contrast and accessibility. The Web Content Accessibility Guidelines (WCAG) recommend a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Use the contrast preview above to check whether white or black text is more readable on your chosen color. A good starting point for most projects is to choose a primary brand color, then generate lighter and darker variations using HSL by adjusting the lightness value.