Color converter. Convert between HEX, RGB, RGBA, HSL, HSLA, and CSS named colors with a visual color picker and WCAG accessibility check.
100% browser-based — your data never leaves your device
Convert HEX, RGB, HSL, and named colors instantly with a color picker.
Use the color picker or type a hex value directly.
See the color converted to HEX, RGB, HSL, CMYK, HSV, and decimal formats instantly.
Click the copy button next to any format to copy it to your clipboard.
Switch to RGB or HSL input mode to convert those formats into HEX.
#6366f1rgb(99, 102, 241)rgba(99, 102, 241, 1)hsl(239, 84%, 67%)hsla(239, 84%, 67%, 1)cmyk(59%, 58%, 0%, 5%)hsv(239, 59%, 95%)6514417Create custom QR codes with colors, logos, and sizes.
Image OptimizerCompress images in your browser reducing file size without losing quality.
Image CompressorCompress images with precise quality control. Reduce file size by adjusting quality, removing metadata, and more.
Image ConverterConvert between image formats including JPEG, PNG, WebP, and AVIF.
Color ConverterConvert HEX, RGB, HSL, and named colors instantly with a color picker.
BMP to PNG ConverterConvert BMP bitmap images to PNG format with lossless compression. Reduce file size up to 90% while preserving every pixel.
SVG OptimizerMinify and optimize SVG files by removing unnecessary data.
Base64 Image EncoderEncode images to Base64 data URIs for embedding in HTML or CSS.
BG RemoverRemove image backgrounds online for free. Click to select a background color and the tool automatically removes matching pixels with adjustable tolerance.
Color values exist in several dialects, and moving between them by hand invites arithmetic mistakes. This converter does the translation instantly, with a picker and an accessibility check included:
Design work is a constant negotiation between formats. A designer specifies a color in HSL in the mockup, a developer needs it as a HEX token for the design system, and an auditor wants the RGB breakdown for contrast analysis. Anyone moving between design tools, CSS, and accessibility documentation will live inside this tool during that handoff.
The conversion table is comprehensive enough to cover every common notation, including RGBA and HSLA with alpha channels and CSS named colors. The palette history is a small convenience that pays off in real projects, keeping recently picked colors within reach while you iterate. The WCAG contrast check is the most consequential feature, because it turns a vague concern about readability into a concrete pass or fail against AA and AAA requirements at different text sizes.
A color palette is effectively a fingerprint of a brand, and an unreleased design system is intellectual property under construction. Pasting brand colors into an online converter that stores your selections hands a competitor or a scraper a record of what you are building before it ships.
Everything in this converter happens locally, from parsing your values to computing contrast ratios. No colors, no palettes, and no design decisions are transmitted, so proprietary brand systems and client color schemes stay private while you work.
Type a color value (HEX, RGB, HSL) or use the visual color picker to select a color.
See the color value in HEX, RGB, RGBA, HSL, HSLA, and CSS named color formats instantly.
Use the WCAG contrast check to verify that color combinations meet accessibility standards.
Practical examples to help you get the most out of Color Converter:
Input: #3498db HEX: #3498db RGB: rgb(52, 152, 219) HSL: hsl(204, 70%, 53%) Named: None (close to "SteelBlue")
Foreground: #333333 Background: #ffffff Contrast ratio: 12.6:1 WCAG AA: Pass (normal text) WCAG AAA: Pass (normal text)
3-digit HEX (#fff) expands to 6-digit (#ffffff) by doubling each character — not by prepending zeros. #fff = #ffffff, not #000fff.
RGB values are 0-255, not percentages (0-100). RGBA opacity is the only 0-1 (or 0%-100%) value in the RGBA format.
HEX (6-digit and 3-digit shorthand), RGB, RGBA, HSL, HSLA, and CSS named colors.
RGB defines colors by red/green/blue channels. HSL defines colors by hue (color), saturation (intensity), and lightness (brightness) — often more intuitive for adjustments.
Use the contrast checker to compare foreground and background colors. The tool shows AA and AAA compliance at different text sizes.
Convert between HEX, RGB, RGBA, HSL, HSLA, and named CSS colors.
Visual color picker for easy selection with real-time preview.
Recently picked colors saved for quick reference.
Check contrast ratios and see WCAG compliance at a glance.
Color Converter is useful in a variety of scenarios across different workflows:
Converting color codes between formats for CSS and design system development
Checking WCAG accessibility compliance by converting colors for contrast analysis
Quickly obtaining color values in different formats during UI design and prototyping
HSL (Hue, Saturation, Lightness) is often more intuitive than HEX or RGB for humans. Use it when you need to adjust colors programmatically.
Use the WCAG contrast check to ensure your text colors meet accessibility standards (4.5:1 for normal text, 3:1 for large text).
Explore more tools in the Image workspace:
QR Code Generator
Create custom QR codes with colors, logos, and sizes.
Image Optimizer
Compress images in your browser reducing file size without losing quality.
Image Compressor
Compress images with precise quality control. Reduce file size by adjusting quality, removing metadata, and more.
Image Converter
Convert between image formats including JPEG, PNG, WebP, and AVIF.
BMP to PNG Converter
Convert BMP bitmap images to PNG format with lossless compression. Reduce file size up to 90% while preserving every pixel.
SVG Optimizer
Minify and optimize SVG files by removing unnecessary data.