Skip to content
Time, Color & Web Runs in your browser — nothing uploadedFree · No signup

Color Converter & WCAG Contrast Checker

Convert any color between HEX, RGB, HSL, CSS and Flutter's Color(0xAARRGGBB) format, and check whether a foreground/background pair passes WCAG AA and AAA contrast.

Convert

  • HEX#22D3EE
  • RGBrgb(34, 211, 238)
  • HSLhsl(188, 86%, 53%)
  • FlutterColor(0xFF22D3EE)
  • Android#FF22D3EE
  • SwiftUIColor(red: 0.133, green: 0.827, blue: 0.933)

WCAG contrast checker

Large heading text

Normal body text — the quick brown fox jumps over the lazy dog.

11.08: 1 contrast ratio
LevelNormal textLarge text / UI
AAPass 4.5:1Pass 3:1
AAAPass 7:1Pass 4.5:1

How to use the Color Converter

  1. Enter a color in any format.
  2. Copy the format you need.
  3. Set a second color to check contrast.

Features

  • HEX ⇄ RGB ⇄ HSL with alpha
  • Flutter Color(0xAARRGGBB) and Android #AARRGGBB output
  • WCAG 2.x contrast ratio with AA/AAA pass/fail
  • Live preview of text on background

Frequently asked questions

What contrast ratio do I need?

WCAG AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1 respectively.

How do I write a hex color in Flutter?

Prefix the hex with FF for full opacity: #22D3EE becomes Color(0xFF22D3EE).