HEX to RGB Color Converter & Contrast Checker
Convert any color between HEX, RGB and HSL. Pick a color with the color picker or type a value such as #10b981, rgb(16, 185, 129) or hsl(160, 84%, 39%), and the other formats update. Below, the WCAG contrast checker takes a text color and a background color, shows the contrast ratio and a live sample, and marks AA normal, AAA normal and AA large text as pass or fail. All calculations run in your browser.
WCAG contrast check
Sample Text 12345
The quick brown fox jumps over the lazy dog.
Contrast ratio
: 1
AA normal
AAA normal
AA large
How to use the Color Converter & Contrast Checker
- Pick a color with the color picker, or type a value into the HEX, RGB or HSL field and press Enter.
- The other formats update automatically; click Copy next to the one you need.
- Under WCAG contrast check, choose a Text color and a Background to see the contrast ratio and the AA/AAA pass or fail labels.
Frequently asked questions
- Type or paste the HEX value, for example #10b981, into the HEX field. The RGB and HSL values appear in the fields below, ready to copy. Three-digit HEX such as #0f8 also works.
- They describe the same color in different ways: HEX is hexadecimal (#RRGGBB), RGB lists red, green and blue values, and HSL uses hue, saturation and lightness, which is handy for fine-tuning.
- Normal text needs at least 4.5:1 for AA and 7:1 for AAA. Large text (about 18pt, or 14pt bold) needs at least 3:1 for AA.
- No. All conversions and contrast checks are calculated in your browser.
Other tools
{ }
JSON Formatter & Validator
Paste JSON to pretty-print, minify or validate it, right in your browser.
64
Base64 Encoder / Decoder
Convert text or images to and from Base64, with URL-safe support.
%
URL Encoder / Decoder
Percent-encode or decode URLs and break query strings into parameters.
⇄
CSV ↔ JSON Converter
Convert CSV to JSON and back, with header rows, quotes and custom delimiters.
🕑
Unix Timestamp Converter
Convert Unix timestamps to dates and back, in seconds or milliseconds.
🔑
UUID & Password Generator
Generate UUID v4s and strong passwords in bulk with crypto-grade randomness.
#️⃣
Hash Generator (MD5 / SHA)
Compute MD5, SHA-1, SHA-256 and SHA-512 hashes instantly, without uploading.
▦
QR Code Generator
Turn a URL or text into a QR code, adjust size and error correction, download PNG.
#
LLM Token Counter
See characters, words, lines and an approximate token count for your text.
Aa
Text Case Converter
Switch case or convert to camelCase, snake_case, kebab-case and more.
.*
Regex Tester
Test regular expressions live, with highlighted matches and capture groups.
🪪
JWT Decoder
Decode a JWT header and payload and see when it was issued and expires.
M↓
Markdown Preview
Write Markdown and see a live preview, then copy the HTML.
±
Text Diff Checker
Compare two texts and highlight additions and deletions by line or word.
Looking for more AI and software tools? Browse the yunodb.com tools directory ↗.