Design Tool

    Color Converter

    Convert between HEX, RGB, and HSL color formats.

    Back to All Tools

    Convert Colors

    HEX

    #3B82F6

    RGB

    rgb(59, 130, 246)

    HSL

    hsl(217, 91%, 60%)

    RGBA

    rgba(59, 130, 246, 1)

    Understanding Color Formats

    Colors on the web are represented in multiple formats. Designers and developers need to convert between them regularly when working with CSS, design tools, and brand guidelines.

    HEX Colors

    HEX codes use a 6-character hexadecimal notation (e.g., #3B82F6). They are the most common format in CSS and web design.

    RGB Colors

    RGB defines colors by their Red, Green, and Blue channel values (0–255). It's used in CSS via rgb() and in most programming environments.

    HSL Colors

    HSL represents Hue (0–360°), Saturation (0–100%), and Lightness (0–100%). It's the most intuitive model for adjusting colors programmatically.

    When to Use Each Format

    • HEX — shorthand for quick CSS usage
    • RGB/RGBA — when you need alpha transparency
    • HSL — when generating palettes or adjusting lightness/saturation