{# Als einziges Symbol OHNE fill-Attribut: Der Stern zeigt seinen Zustand ueber die Flaeche (.sts-star[aria-pressed="true"] svg { fill: currentColor }). Ein fill am symbol waere ein Praesentationsattribut und schluege die geerbte CSS-Angabe - der gemerkte Stern bliebe dann eine Kontur. #} {# Bedienungssymbole des Notizblocks. Quelle: Lucide (ISC-Lizenz), wie in der Design-Uebergabe "Alltagswerkzeuge v2". Geometrisch statt handgezeichnet: sie stehen in Leisten neben Text, nicht als Kategoriezeichen. #}
Small Things Sorted

HEX to RGB converter

Type a HEX code and see RGB, HSL and CMYK at once – or the other way round.

Your colour set

Harmony

or press space – locked colours stay

You pick and check colours in your browser. Only saved colour sets go to your account, when you are signed in.

How to do it

  1. Enter the code

    Type the HEX code with or without #, three or six digits.

  2. Read the values

    RGB, HSL and CMYK are shown below. "Values" shows and hides them.

  3. The other way

    Type RGB numbers into the RGB field and press Enter – the HEX field shows the code.

What this is for

Type the HEX code into the field above, and "Values" shows RGB, HSL and CMYK straight away. The other direction works the same: three RGB numbers into the RGB field, and the HEX field shows the code.

A HEX code is just three numbers in base 16. #135A60 splits into 13, 5A and 60 – for red, green and blue. 13 is 1 × 16 + 3 = 19, 5A is 5 × 16 + 10 = 90, 60 is 96. So rgb(19, 90, 96). Each pair runs from 00 to FF, which is 0 to 255. The short form #ABC doubles every digit and means #AABBCC.

The colour itself stays the same; only the notation changes. CSS understands all three: #135A60, rgb(19 90 96) and hsl(185 67% 23%). Along the way, the tool builds a set of five matching colours from yours.

Common questions

Split the code into three pairs and convert each: first digit times 16 plus the second. A to F stand for 10 to 15. #FF8000 gives 255, 128 and 0.

It is the short form: every digit is doubled. #F80 is the same as #FF8800.

Yes. Both describe the same three values for red, green and blue, once in base 16 and once in base 10. Nothing is lost in the conversion.

Missing a tool? Tell us which one.