🎨 Color Converter & Contrast Checker
Convert color codes across HEX, RGB, HSL, and RGBA spaces and check WCAG accessibility contrast ratings.
⚖️ WCAG 2.x Color Contrast Checker
Using Color Picker & Converter
Convert a brand color from HEX to RGB, HSL and RGBA for CSS or design software, and check whether a text and background pair passes WCAG contrast.
How to use it
- Type a HEX value, or use the color picker; RGB, HSL and RGBA update to match. Eight-digit HEX such as #1e90ff80 adds transparency.
- Copy the format your tool needs using the Copy button beside it.
- In the WCAG 2.x Color Contrast Checker, set Text Color (Foreground) and Background Color.
- Read the ratio and the AA and AAA results for normal and large text.
Worked example
- Input and settings
- HEX #1e90ff; contrast check of #777777 text on #ffffff
- Expected result
- rgb(30, 144, 255) and hsl(210, 100%, 56%); contrast 4.48:1, which fails AA for normal text but passes AA for large text.
Limits and common mistakes
- A pass or fail is based on the exact ratio, so 4.48 fails the 4.5 threshold even though it rounds close.
- Contrast is checked only for solid colors; translucent colors are rejected because the result depends on what is behind them.
- HSL values are rounded to whole numbers, so they can be a fraction away from the exact HEX color.
- Screen colors are not print colors: this tool does not produce CMYK or Pantone values.
Found a mismatch? Report a problem with a non-sensitive example. Read our privacy information before sharing inputs or links.
🔗 Related Tools
Image Color Picker & Palette
Sample image colors, export HEX/RGB/CSS and check color contrast.
General Unit Converter
Convert length, weight/mass, temperature, volume, area, and speed with high precision and live calculations.
Unix Timestamp Converter
Convert Unix epoch timestamps (seconds & milliseconds) to human-readable UTC and local dates and vice versa.
World Clock & Timezone Converter
View real-time world clocks across global timezones or simulate any date/time conversion with auto-detected local time.