snaptxt.app

Color Converter

Convert colors between HEX, RGB, HSL, HSV, and OKLCH. Generate tint/shade scales and complementary, analogous, triadic, and tetradic palettes. Free, in your browser.

Pick or paste a color
HEX#6366f1
HEX (8)#6366f1
RGBrgb(99, 102, 241)
HSLhsl(239, 84%, 67%)
HSVhsv(239, 59%, 95%)
OKLCHoklch(58.5% 0.204 277.1)
Tint & shade
Complementary
Analogous
Triadic
Tetradic

Everything runs in your browser.

Colors are parsed and converted client-side. Nothing is sent to a server.

How to use it

  1. 1Pick a color with the native color picker, or paste any of: HEX (#6366f1, #6366f1ff), RGB (rgb(99 102 241) or rgb(99,102,241)), HSL, or three bare numbers.
  2. 2Every format updates simultaneously — HEX, HEX with alpha, RGB, HSL, HSV, and OKLCH. Click the copy icon on each row.
  3. 3Below, a 9-stop tint/shade scale and four harmony palettes (complementary, analogous, triadic, tetradic) are derived from your color. Click any swatch to make it the new source.

Common use cases

  • Pull a HEX value out of a Figma file and instantly get the OKLCH equivalent for a modern Tailwind / CSS theme.
  • Find triadic or analogous companions for a brand color without leaving the browser.
  • Build a tint/shade scale for a design system — copy each step's HEX with one click.
  • Convert legacy HSL values to OKLCH so the lightness math behaves the way designers expect.
  • Verify alpha-channel output (HEX 8) for designs that mix translucent fills with opaque backgrounds.

Frequently asked questions

What's OKLCH and why include it?
OKLCH is a perceptually uniform color space that browsers now support natively. Equal changes in lightness or hue look equal to the human eye — unlike HSL, where 50% lightness yellow and 50% lightness blue look very different. It's becoming the recommended space for design systems and the default in libraries like Tailwind v4.
Are HEX with alpha (#rrggbbaa) supported?
Yes. Paste an 8-character HEX and the alpha is read; alphas are shown back on the HEX (8) row. Three- and four-character shorthand (#rgb, #rgba) also work — they're expanded internally.
Why does my color look slightly different after a round-trip?
Conversions between color spaces are precise but display is limited to your monitor's gamut. HSL → RGB is exact; OKLCH → sRGB can clip if you've picked a color outside the sRGB gamut. The numbers shown are the unclamped ideal values; what you see on screen is what your display can render.
Is anything sent to a server?
No. All parsing, conversion, and palette math happens in your browser. There's no API call.
Can I copy a single format?
Yes — each format row has its own copy button. You can also click any swatch in the palettes to make that color your new source.

Related tools

Base64 Encode / Decode
Encode and decode text and files to and from Base64.
HTML Live Preview
Write HTML, CSS, and JavaScript and see the result instantly.
JSON Formatter
Format, validate, minify, diff, and explore JSON — with optional on-device AI that summarizes any payload in plain English.
JWT Decoder
Inspect the header, payload, and expiry of any JSON Web Token — with optional on-device AI that explains what the token grants in plain English.
SQL Formatter
Beautify, format, and minify SQL queries for any dialect — with optional on-device AI that explains what a query does in plain English.
Unix Timestamp Converter
Convert Unix timestamps to dates and back, in any timezone.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes in your browser.
JSON to TypeScript
Generate TypeScript interfaces or type aliases from JSON.
Markdown to PDF
Convert Markdown to a beautifully styled PDF in your browser.
QR Code Generator
Make QR codes for websites, Wi-Fi passwords, contact cards, social handles, email, SMS, and more. Download as PNG or SVG — or as a ZIP with one branded QR per social platform.
Password Generator
Generate strong, secure passwords in your browser. Nothing is sent or saved to any server.
Text Diff
Compare two pieces of text and see line-by-line, word-by-word, or character-by-character what changed.
UUID / ULID Generator
Generate UUID v4, UUID v7, or ULID identifiers in bulk, instantly in your browser.
SVG to PNG / JPEG / WebP
Convert SVG to PNG, JPEG, or WebP at any size — quality slider, transparent or colored background, copy to clipboard. Free, in your browser.
URL Encoder / Decoder
Encode or decode URLs and query parameters with component-vs-full-URI scope, plus a query-string breakdown. Free, in your browser.
Regex Tester
Test JavaScript regular expressions with live highlighting and a capture-group inspector — plus an AI regex generator that turns plain-English descriptions into regex (on-device Gemini Nano).
HTML ↔ Markdown Converter
Convert HTML to Markdown or Markdown to HTML with a live preview. GFM tables, fenced code blocks, inline formatting. Free, in your browser.
Cron Builder
Build cron expressions visually or describe the schedule in plain English and let on-device AI write it for you. Plain-English explanation, next 5 runs, presets.