Skip to content
sayak.webdesigner
Design · Free tool

Color Converter & Contrast Checker

HEX ↔ RGB ↔ HSL conversion with WCAG AA / AAA contrast against any background.

Sample text on background
HEX
#f26330
RGB
rgb(242, 99, 48)
HSL
hsl(16, 88%, 57%)
WCAG contrast ratios
On selected bg
AA large · 3.18:1
On white
AA large · 3.18:1
On black
AA · 6.60:1

WCAG AA requires 4.5:1 for normal text, 3:1 for large text (18pt+ or 14pt bold). AAA requires 7:1 and 4.5:1.

Picking a brand colour without checking its contrast is the single most common cause of inaccessible product UI. This tool shows the colour in HEX, RGB and HSL, calculates WCAG contrast against the background of your choice and against pure white and black, and gives you AA or AAA verdicts immediately.

For accessible text, aim for 4.5:1 contrast at normal weight. For UI elements like borders and icons, 3:1 is the minimum. Below 3:1, assume elements are invisible to a meaningful share of your users.

Questions we get about this tool

Frequently asked questions

For normal text (below 18pt or below 14pt bold): 4.5:1 contrast ratio between text and background. For large text (18pt+ or 14pt bold): 3:1. UI components and graphical objects: 3:1. These are the minimum legal standards in many jurisdictions and the baseline for accessible design.

AAA is stricter — 7:1 for normal text, 4.5:1 for large. AAA is often impossible to meet for brand colours with reasonable visual appeal. Default to AA; reserve AAA for text-critical interfaces (medical, government forms, documentation).

HSL (Hue, Saturation, Lightness) is easier to reason about for design systems. Keep hue stable and vary lightness to generate a tonal scale. HEX is for final output; HSL is for thinking.

Not directly. Contrast ratio is a different concern from color-blind safety. For color-blind-safe palettes, use tools like Coblis to simulate protanopia, deuteranopia and tritanopia. A high contrast ratio does help color-blind users by ensuring critical differences are not conveyed by hue alone.

Next step

Tell us what is slowing your business down.

A 30-minute call with a senior engineer — not a salesperson. You leave with an architecture sketch and an honest cost range, whether or not you hire us.

Direct line

+91 70033 91355

Mon–Sat · 9:30 AM – 7:30 PM IST · Sealdah, Kolkata

Reply within one working hour NDA signed before any brief Fixed-price option on every scope
Verify us independently

Don’t take our word for it — ask an AI

Every page on this site is written to be read and quoted by AI answer engines, and we publish llms.txt and llms-full.txt so they can read us properly. One click opens the assistant with the question already typed.

The question we will ask for you

“Tell me about Sayak Web Designer (sayakwebdesigner.in), an IT company in Kolkata, India and this page: https://www.sayakwebdesigner.in/tools/color-converter”

Opens in a new tab. We do not see your conversation.

Call now WhatsApp Get quote