Maintain contrast
Aim for WCAG 2.1 contrast ratios of 4.5:1 for normal text and 3:1 for large text. Test under light and dark themes.
Designers and developers switch between color models to match their tools. Use this converter to translate between HEX, RGB, HSL, and HSV representations instantly.
| Model | Components | Best for |
|---|---|---|
| HEX | #RRGGBB hexadecimal | CSS variables, design tokens, static palettes |
| RGB | Red, Green, Blue 0–255 | Canvas drawing, LED strips, low-level rendering |
| HSL | Hue (°), Saturation %, Lightness % | Design adjustments, generating tints and shades |
| HSV | Hue (°), Saturation %, Value % | Image editors, selecting vivid colors from palettes |
Consistent color choices keep interfaces legible for everyone. Apply these accessibility practices to your palette.
Aim for WCAG 2.1 contrast ratios of 4.5:1 for normal text and 3:1 for large text. Test under light and dark themes.
Pair color emphasis with text labels, icons, or patterns so color-blind users understand status changes.
Preview palettes against simulated color vision deficiencies and ensure critical information remains distinguishable.
Enter #3B82F6: RGB is rgb(59,130,246), HSL rounds to hsl(217,91%,60%), and HSV rounds to hsv(217,76%,96%).
const hex = '#3B82F6';
const rgb = [1, 3, 5].map(i => parseInt(hex.slice(i, i + 2), 16));
console.log(rgb); // [59, 130, 246]value = '#3B82F6'
rgb = tuple(int(value[i:i + 2], 16) for i in (1, 3, 5))
print(rgb) # (59, 130, 246)Use six hexadecimal digits. RGB/HSL input uses integer channels; HSV is a calculated output. This tool does not calculate contrast ratios or simulate color blindness. Check contrast separately before using a palette for text.
HEX is hexadecimal RGB, RGB lists decimal channel values, and HSL represents hue, saturation, and lightness—ideal for adjusting brightness programmatically.
Check contrast ratios against WCAG guidelines and avoid conveying meaning with color alone. Simulate color blindness before production.
No. Shade calculations and conversions run in your browser, so brand palettes and design tokens stay private.
Yes. The palette generator suggests complementary, analogous, triadic, and monochromatic variations to speed up theme design.
Expand Reproduce a color conversion for JavaScript and Python examples that convert six-digit HEX to RGB. HSL and HSV values are also shown by the interactive tool.
Protect text with AES-GCM and PBKDF2 tokens that stay on-device.
Generate MD5, SHA-1, and SHA-256 digests locally with Web Workers.
Convert any text to or from Base64 without leaving your browser.
Decode claims and verify HMAC signatures without network calls.
Validate, format, and diff JSON without network calls.
Format, minify and convert XML to JSON locally.
Experiment with regular expressions and capture groups locally.
Encode components and inspect query parameters locally.
Create collision-resistant UUID v4 identifiers using Web Crypto.
Build strong passwords with custom length, charset, and entropy.
Convert Unix timestamps into local, UTC and ISO dates.
Convert case, slugify, and clean strings on-device.
Design QR codes for text, Wi-Fi, contacts, email, or SMS locally.
Generate EAN and Code 128 barcodes and download crisp PNG output.
Look up your public IP using disclosed external services.
Produce paragraphs, lists, and markdown filler text fast.
Compress JPG, PNG, WebP and AVIF images to a target size in your browser. Preview results, process batches and download images individually or as a ZIP.
Convert WebP and AVIF images to JPG or PNG locally. Batch convert supported images, control quality and transparency, preview results and download a ZIP.
Convert JSON and NDJSON to CSV for Excel, or CSV to JSON, locally. Flatten nested objects, choose columns and delimiters, and download UTF-8 results.
Decode Base64 or data URIs to an image preview and download, or encode an image file to Base64. Inspect dimensions and size without uploading your image.
Convert HEIC and HEIF photos to JPG or PNG in your browser. Choose quality, preview converted images and download individual photos or a batch ZIP.
Decode Base64 to PDF locally, preview pages with zoom and navigation, and download the decoded PDF. Supports raw Base64 and application/pdf data URIs.
Run the AES interoperability guide or read how these tools are checked.