belun.app

Color Converter — HEX to RGB, HSL, and HSV

HEX —
RGB —
HSL —
HSV —

Paste any color value — HEX, RGB, HSL, or HSV — and instantly see it converted to all other formats. Use the color picker to choose visually, or type a value directly. Everything runs locally in your browser, so your colors stay private.

Which color format to use where

Task Format
Writing CSS by hand HEX or HSL
Copying values out of a Figma or Sketch export HEX
Generating lighter and darker shades in code HSL
Matching a Photoshop, Figma or Affinity Designer picker HSV (HSB)
Blending colors or working with transparency RGB, or rgba() when alpha is needed

Reading the numbers inside each color code

In HEX, every pair of characters is one channel in base 16, from 00 (0) to ff (255), ordered red, green, blue. RGB mirrors the hardware itself: each LCD or OLED pixel is lit by red, green and blue sub-pixels.

Hue in HSL and HSV is an angle on the color wheel: 0° is red, 120° green, 240° blue. HSL gives the pure hue at 50% lightness, so a darker shade just needs less lightness, and a muted tone needs less saturation. In HSV, keeping value at 100% while lowering saturation slides the pure hue toward white, which is how tints are usually picked in design tools.

Frequently asked questions

What color formats are supported?
HEX (#rgb or #rrggbb) and rgb(), hsl() and hsv() written with commas. It does not read alpha (#rrggbbaa, rgba()), colour names such as red, or the space-separated CSS syntax rgb(255 0 0).
Why does my HEX shorthand (#abc) expand to a longer form?
Three-digit HEX is a shorthand where each digit is doubled: #abc is identical to #aabbcc. The converter normalises it to the full six-digit form, which is more widely supported.
Are the color conversions exact?
HEX and RGB are exact. HSL and HSV are rounded to whole numbers, so a round trip can shift a channel by a few units: #b109a7 becomes hsl(304, 90%, 36%), which converts back to #ae09a3.

Related tools