Instantly convert between HEX, RGB, and HSL color formats.
Digital colors are represented using different models. Each model has its own way of describing a color, and each is suited for different tasks. This tool helps you translate between the three most common models used in web design and development.
HEX codes are a mainstay of web development. It's a six-digit code representing the Red, Green, and Blue (RGB) components of a color. The format is #RRGGBB, where RR, GG, and BB are two-digit hexadecimal numbers from 00 to FF, representing the intensity of that color component.
"#FFFFFF" is pure white, and "#000000" is pure black.The RGB model is an additive color model where red, green, and blue light are added together in various ways to reproduce a broad array of colors. Each component can have a value from 0 to 255.
"rgb(255, 0, 0)" is pure red.HSL is often considered more intuitive and human-friendly. It represents colors based on their position on the color wheel, their intensity, and their brightness.
This model is particularly useful for creating color palettes, as you can easily create variations of a color by adjusting the saturation or lightness while keeping the hue constant.