RevealTheme logo

Kleurconverter (HEX/RGB/HSL)

Zet kleuren om tussen de formaten HEX, RGB en HSL. Kies een kleur visueel of voer de waarden handmatig in.

HEX
#535beb
RGB
rgb(83, 91, 235)
HSL
hsl(237, 79%, 62%)

Hoe u deze tool gebruikt

  1. 1

    Click the color swatch to open your operating system's color picker and choose a color visually.

  2. 2

    Or type a 6-digit HEX value (such as #535beb, with or without the leading #) into the text field.

  3. 3

    Read the matching rgb(R, G, B) and hsl(H, S%, L%) strings in the result cards below.

  4. 4

    Copy whichever format you need straight into your CSS or design file.

Wat is de Kleurconverter (HEX/RGB/HSL)?

HEX, RGB en HSL zijn drie manieren om dezelfde kleur uit te drukken. HEX (#RRGGBB) is het meest gebruikt in CSS en in ontwerpprogramma's. RGB (rgb(R,G,B)) scheidt de kanalen numeriek. HSL (hsl(H,S%,L%)) is intuïtiever voor mensen: de tint (hue) is de kleur, de verzadiging is de intensiteit en de lichtheid (lightness) is de helderheid. Gebruik HSL bij het ontwerpen van paletten; zet het om naar HEX voor de implementatie.

Veelvoorkomende toepassingen

  • Translating a brand HEX code from a style guide into the rgb() values a legacy stylesheet or email template requires.

  • Grabbing the HSL form of a color so you can nudge its lightness or saturation while keeping the same hue for a palette.

  • Checking the exact RGB channels of a color picked from a screenshot or mockup before writing it into CSS.

  • Confirming what a designer's HEX swatch becomes in RGB for a canvas, SVG, or charting library that wants numeric channels.

  • Teaching or learning how hexadecimal color notation maps to decimal RGB and to the HSL model.

  • Quickly sampling a color visually with the picker and reading all three CSS-ready notations at once.

Veelgestelde vragen

Wanneer moet ik HSL gebruiken in plaats van HEX?
Bij het ontwerpen: met HSL kunt u de lichtheid of de verzadiging onafhankelijk aanpassen. Zet het daarna om naar HEX voor de code.
En OKLCH en de moderne kleurruimten?
OKLCH is perceptueel uniform en beter voor de toegankelijkheid. Het wordt ondersteund in CSS Color Level 4 (alle moderne browsers).

Gerelateerde tools