HEX, RGB & HSL Color Converter

    Supports HEX, RGB, RGBA, HSL, HSLA, and CSS color names.

    Design System Color Palette & Harmonies Workspace

    Color variables form the foundation of accessible UI designs. This companion tool lets you calculate WCAG contrast ratings and scale color token systems instantly.

    Figma Design Use Cases

    • Defining semantic color tokens (Primary, Secondary, Success, Warning) for Figma libraries.
    • Auditing color combinations against Web Content Accessibility Guidelines (WCAG 2.1) contrast boundaries.
    • Generating color harmonies (complementary, split-complementary, triadic, analogous) from a single brand hex value.

    Step-by-Step Walkthrough

    1. 1

      Input your primary brand color in HEX, RGB, or HSL format inside the color inspector field.

    2. 2

      Inspect the dynamically calculated accessibility contrast scores against white and dark backgrounds.

    3. 3

      Explore the auto-generated visual harmony palettes under the palette preview grid.

    4. 4

      Click on any generated hex code to copy the design token directly into your Figma color panel.

    Practical Design Examples

    Brand Primary Blue: HEX #0284c7 maps to HSL 201° 98% 39% (Excellent contrast on light backgrounds).
    Triadic Harmony Set: For base color #ef4444 (Red), the tool suggests #4ade80 (Green) and #60a5fa (Blue) for UI visual accents.

    Educational Concepts

    Color models translate physical light wavelengths into computer coordinates. Unlike RGB (Red, Green, Blue) which is optimized for cathode ray tubes, HSL (Hue, Saturation, Lightness) organizes color coordinates logically for human designers, allowing you to create tints and shades simply by altering the Lightness parameters.

    How It Compares to Alternatives

    FeatureOur Web Companion ToolStandard Alternatives / Plugins
    Contrast AuditingInstant, inline scoringNeeds separate Figma plugins
    Harmonies MathCalculated instantly on the flyManual manual color picking
    Variables ScalingStandardizes HSL tokens directlyRough visual guesses

    Frequently Asked Questions

    What is a HEX color code?
    A HEX color code is a 6-digit hexadecimal value representing Red, Green, and Blue light intensities, widely used in web development and design tools like Figma.
    How do I check contrast ratios?
    Input your text color in the converter to view its real-time contrast ratio against black, white, and gray backgrounds. Ensure a ratio of at least 4.5:1 for normal text to satisfy WCAG AA standards.
    What is the difference between RGB and HSL?
    RGB defines colors using Red, Green, and Blue light mixtures. HSL represents color through Hue (degrees on a color wheel), Saturation (percentage of intensity), and Lightness (percentage of white or black), which is much more intuitive for designers.
    Which color format does Figma use?
    Figma supports HEX, RGB, HSL, and HSB formats in its properties panel. You can easily copy any values generated by this converter and paste them straight into Figma's color input.
    Recommended Video Lesson

    Lesson 26: Styles and Variables

    Learn how to define, manage, and scale color palettes programmatically using Figma's local variables collections.

    Watch Lesson 26