Skip to main content

Color & Gradient Generator – Hex, RGB, HSL, Palettes & CSS (Free Online)

Color & Gradient Generator – HEX, RGB, HSL, Contrast & CSS

Use this free Color & Gradient Generator to pick colors, convert HEX/RGB/HSL, check contrast (WCAG), create linear/radial gradients, copy CSS, and export palette swatches. Everything runs in your browser—no uploads.

Pick & Convert Colors

Contrast Checker (WCAG)

Ratio: — • AA (normal): — • AAA (normal): — • AA (large): — • AAA (large): —
Preview text on background

Gradient Builder (Linear / Radial)

background: linear-gradient(90deg, #4f46e5, #06b6d4);

Palette & Export

How to Use This Color & Gradient Generator

  1. Pick a color or paste a HEX/RGB/HSL value to convert automatically.
  2. Use the Contrast Checker to verify accessibility (WCAG AA/AAA).
  3. Build linear or radial gradients and copy CSS.
  4. Add colors to your Palette and export swatches as PNG.

Why Designers & Developers Love It

  • Accurate conversions: HEX ↔ RGB ↔ HSL with live preview.
  • Accessibility-first: WCAG contrast ratio for normal/large text.
  • Copy-ready: One-click CSS for backgrounds and color values.
  • No tracking: 100% client-side; nothing leaves your browser.

FAQ – Color & Gradient Generator

Can I copy CSS for gradients?

Yes. Use the Gradient Builder and click Copy CSS to copy a ready-to-use background property.

Does this check WCAG contrast?

Yes. Enter foreground and background colors to get the contrast ratio and AA/AAA pass/fail.

Can I export the palette?

Yes. Click Download Swatches (PNG) to export a swatch sheet. You can also copy HEX/RGB lists.

Is my data uploaded?

No. Everything runs locally in your browser for privacy.

Comments

Popular posts from this blog

URL Encoder & Decoder – Free Online Tool (Encode & Decode URLs)

URL Encoder & Decoder – Free Online Tool Use this free URL Encoder & Decoder to safely encode special characters in text or links, or decode encoded URLs back to readable text. Everything runs in your browser—secure and private. Contents: URL Encoder & Decoder • Examples • FAQ URL Encoder & Decoder Input (text or URL) Encode Decode Copy Output Output Examples Text: Hello World! → Hello%20World%21 Symbols: a+b=c → a%2Bb%3Dc Full URL: https://rtools.xyz/page?search=blue sky → https://rtools.xyz/page?search=blue%20sky FAQ – URL Encoder & Decoder Why do I need URL encoding? URLs can’t contain spaces or unsafe characters. Encoding ensures links are valid and safe for browsers and servers. Can I decode multiple lines at once? Yes. Paste any long string, and the tool decodes it fully. Is this the same as HTML escaping? No. URL encoding is for query stri...

JSON Formatter & Validator – Pretty Print, Minify, Sort Keys (Free Online)

JSON Formatter & Validator – Pretty Print, Minify, Sort Keys Format and validate JSON instantly. This free tool can pretty-print , minify , sort keys , and lets you copy or download the result. Everything runs in your browser—no uploads. Contents: JSON Formatter • Tips • FAQ JSON Formatter & Validator Format Minify Sort Keys (A→Z) Validate Copy Output Download .json Indent: 2 4 Tab Input JSON Or drop a file anywhere in this box Output Tips Validate first if you’re unsure the JSON is valid. Use Sort Keys before running a diff in Git or comparing configs. Switch indentation between 2 / 4 / Tab to match your project style. Drag & drop a .json file directly into the input area. FAQ – JSON Formatter & Validator Wh...