HEX
#4F46E5
RGB
rgb(79, 70, 229)
HSL
hsl(243, 75%, 59%)
How to use
Use the color picker or type a HEX code to instantly see RGB and HSL equivalents. Click Copy next to any value to copy it.
FAQ
What is a HEX color?
A HEX color is a 6-digit hexadecimal code (e.g., #4f46e5) representing the red, green, and blue channels of a color. Each pair of digits ranges from 00 to FF (0–255).
What is the difference between RGB and HSL?
RGB defines color by red, green, and blue intensity (0–255 each). HSL defines it by hue (0–360°), saturation (0–100%), and lightness (0–100%), which is more intuitive for designers.
What is color opacity/alpha?
Alpha (opacity) is a fourth channel ranging from 0 (fully transparent) to 1 (fully opaque). It is represented in CSS as rgba() or hsla(), and in HEX as an 8-digit code (e.g., #4f46e5ff).