CONVERTERS

Color Converter

Go from HEX to RGB and HSL with a handy color preview.

HEX#22745B
RGBrgb(34, 116, 91)
HSLhsl(162, 55%, 29%)
Processed in your browser. Your input isn’t uploaded.

Can't find the tool you need?

Tell us what you're trying to do. We review every request within 24–48 hours, and useful ideas may become free tools for everyone on ToolRino.

Request a tool

How to use Color Converter

  1. 1

    Enter a three- or six-digit HEX color, with or without #.

  2. 2

    Preview the color and inspect its RGB and HSL values.

  3. 3

    Copy the color values for your project.

Good to know

This tool converts opaque sRGB colors. Alpha channels and other color spaces are not supported.

When to use this tool

Translate a HEX color from a design file into RGB or HSL notation for your CSS. Enter the digits with or without a leading #. The formats describe the same opaque sRGB color; changing the notation does not improve contrast or alter the color. HSL values are rounded to whole numbers in this tool.

PRACTICAL EXAMPLE

Converting a primary color

Start with
#f00
What to expect
The expanded HEX value is #FF0000, RGB is rgb(255, 0, 0), and HSL is hsl(0, 100%, 50%).

Get a better result

  • Use six-digit HEX or RGB when preserving the exact channel values matters. Rounded HSL can convert back to slightly different values.
  • Check text contrast separately. The color preview is not an accessibility contrast test.

Common questions

Does this accept eight-digit HEX with transparency?

No. This version supports only three- and six-digit opaque HEX values. Alpha channels are not included.

Can I enter a named color such as red?

Use a HEX value instead. For red, enter #f00 or #ff0000.

Continue your task