SimplyScan logoSimplyScan
What We ScanPricingFree ToolsBlogCreate AccountLog In
  1. Home
  2. Free Tools
  3. Color Converter
Free Tool · Runs in your browser

Free Color Converter (HEX, RGB, HSL)

Convert any color between HEX, RGB, and HSL · type in one format and get the others, with a live swatch and CSS-ready values.

100% client-side · nothing you enter is ever sent to a server or stored.

Preview · sign in with a free account to run it

How to use it

  1. Type a colour in any format: #6d28d9, #63d, rgb(109, 40, 217) or hsl(263, 70%, 50%). Alpha values work too.
  2. Read the same colour as HEX, RGB and HSL, with a live swatch.
  3. Copy the CSS-ready value.

Example

Input

#6d28d9

Result

HEX  #6d28d9
RGB  rgb(109, 40, 217)
HSL  hsl(263, 70%, 50%)

When to use each format

HEX
The most compact, and the one design tools export. 8-digit hex adds alpha.
RGB
Easy to read as channels, and rgb(… / 0.5) adds transparency.
HSL
The easiest to adjust by hand: change lightness for hover states, or hue for a palette.

Go deeper

  • WCAG Color Contrast: Ratios and Accessibility Requirements

Page updated 21 November 2026

Frequently asked questions

When should I use HSL instead of HEX?

When you need to reason about color: HSL separates hue, saturation, and lightness, so "10% darker" is just a lightness change. Design systems (including Tailwind themes) increasingly define tokens in HSL for exactly this reason.

Does it handle alpha (transparency)?

Yes · 8-digit hex (#RRGGBBAA), rgba(), and hsla() all parse and convert, and the swatch preview renders the transparency over a checkerboard.

Is this colour readable on my background?

Use the Color Contrast Checker. It computes the WCAG ratio for any pair.

Want the full picture?

This tool covers one narrow check. A full SimplyScan runs 60 checks across 14 categories · exposed keys, RLS, XSS, auth, and speed · in 30 seconds.

Run a full security scan

Related tools

URL Slug Generator

Turn any headline into a clean URL slug · lowercase, hyphenated, accent-free, with optional stop-word removal.

JSON Formatter

Paste JSON to pretty-print, minify, or validate it · with the exact line and position of any syntax error.

JSON to TypeScript

Convert a JSON payload into TypeScript interfaces · nested objects and arrays included · ready to paste into your codebase.

SimplyScan logoSimplyScan

Security Scanner for Vibe-Coded Apps.

Product

See What We ScanHow It WorksView Pricing

Resources

Security BlogSecurity ChecklistTrust BadgeUptime MonitoringIntegrationsMCP Server (Claude, Cursor & Windsurf)API DocumentationBackend Audit GuideThreat Detection GuideFAQTerms of ServicePrivacy Policy

Platforms

All platforms →Lovable ScannerBolt.new ScannerCursor ScannerReplit Scannerv0.dev ScannerWindsurf ScannerBubble Scanner

Free Tools

All free tools →SSL CheckerSecurity HeadersDNS Security CheckerCORS TesterJWT DebuggerCSP EvaluatorHash GeneratorSEO Checker

Account

Create AccountLog In

© 2026 SimplyScan. All rights reserved.