Favorite places of your favorite city
Home
Add to preferred sources on Google

Color Contrast Checker

Compare text and background colors. See their contrast ratio and check the numerical WCAG thresholds for normal text, large text and essential interface details.

Colors

Three or six HEX digits, with an optional #.

Three or six HEX digits, with an optional #.

0–100%, with up to two decimal places. The background is opaque.

Opacity stays with the foreground when colors are swapped.

Contrast result

Enter both colors and a valid opacity to see their contrast.

The comparison runs in your browser without tool-added uploads or saved color history. Copy writes the current report to your clipboard only when requested. Normal site services and consent settings remain separate.

Check a pair of colors

  1. Enter each color as a three- or six-digit HEX value, or choose it with its color picker. The background must be a solid opaque color.
  2. Leave foreground opacity at 100% for opaque text, or enter a lower percentage for a transparent foreground. Results update when all three values are valid.
  3. Read the ratio and the separate normal-text, large-text and non-text outcomes. Check your actual design context, then copy the qualified report if you need to share the comparison.

Read the contrast results

For normal text, the numerical thresholds are 4.5:1 at AA and 7:1 at AAA. The calculation compares relative luminance, rather than judging how different the color names sound.

Large text uses 3:1 at AA and 4.5:1 at AAA. Large means at least 18pt regular or 14pt bold, or an equivalent size for other scripts. These are about 24 and 18.67 CSS pixels; actual typography still needs review.

Foreground opacity changes the effective color over the entered background. At 100% the foreground is opaque. At 0% it disappears into the background and has a ratio of 1:1. Background transparency is outside this tool’s scope.

The 3:1 non-text row compares this pair for essential visual details against an adjacent color. Every decision uses the unrounded ratio; the two-decimal headline is only a readable display.

Examples you can verify

Black #000000 against white #FFFFFF at 100% opacity gives 21:1, meeting all five displayed numerical thresholds. Swapping those opaque colors leaves the ratio unchanged.

Gray #777777 against white gives about 4.48:1. It does not reach the 4.5:1 threshold for normal text at AA, although it exceeds the 3:1 threshold for large text at AA.

Black at 50% opacity over white gives about 3.98:1 in this sRGB calculation. Reducing opacity can remove contrast even when the original opaque pair has a strong ratio.

A pair check is one part of accessibility

This tool evaluates solid sRGB colors with an opaque background and optional foreground opacity. It does not inspect a page, read fonts, sample images or gradients, simulate color vision, or assess every WCAG requirement and exception.

A numerical threshold result does not certify a page or product as accessible. Review actual text size and weight, adjacent colors, meaningful shapes, states and other accessibility requirements. Display rendering and antialiasing can also affect practical readability.

Calculated in your browser

The comparison runs in your browser without tool-added uploads or saved color history. Copy writes the current report to your clipboard only when requested. Normal site services and consent settings remain separate.

Color contrast questions

No. It means only that this color pair reaches the displayed numerical threshold. The actual use, typography, exceptions and all other relevant requirements still need assessment.

At least 18pt regular or 14pt bold text, or equivalent sizing for other scripts. Use the size and weight actually delivered to users, rather than assuming that a heading is automatically large text.

A value such as 4.499 rounds to 4.50 for display but remains below 4.5. Threshold comparisons use the unrounded calculation.

This version accepts three- or six-digit RGB HEX values. Set foreground opacity in its separate percentage field. CSS function strings, alpha HEX and transparent backgrounds are not accepted.

The two color values swap, while the opacity setting stays with the foreground role. Opaque pairs keep the same ratio; a transparent pair can produce a different result after the swap.

Sources and method

These results assess numerical contrast for the entered pair only; they do not establish WCAG conformance.

SVG to PNG

Convert a local SVG file or pasted markup into PNG, with explicit dimensions, transparency and bundled fonts.

Open tool — SVG to PNG

CSS Filter Generator

Order and repeat CSS effects, compare a specimen and copy the exact filter declaration.

Open tool — CSS Filter Generator

Fluid Font Size Calculator

Create root-relative CSS from viewport endpoints and inspect the copied size model.

Open tool — Fluid Font Size Calculator

CSS Button Generator

Style native button states, inspect keyboard focus and copy HTML and CSS.

Open tool — CSS Button Generator

CSS Border Radius Generator

Edit eight corner radii, preview a box and copy CSS in pixels or percentages.

Open tool — CSS Border Radius Generator

CSS Grid Generator

Build a bounded CSS Grid example with editable tracks, placement and named areas. Preview it, copy CSS or HTML and download the same standalone example.

Open tool — CSS Grid Generator

CSS Flexbox Generator

Build a Flexbox example with container and item controls, explicit layout axes, matching CSS and HTML, and a local complete-example download.

Open tool — CSS Flexbox Generator

CSS Text Shadow Generator

Build ordered text shadows, preview plain text and copy exact CSS.

Open tool — CSS Text Shadow Generator

CSS Transform Generator

Compose repeatable 2D CSS transforms, edit px or percentage translation and origin, inspect a reference box and copy the exact current declarations.

Open tool — CSS Transform Generator

CSS Box Shadow Generator

Create ordered CSS box-shadow layers with a live preview and copyable code.

Open tool — CSS Box Shadow Generator

Image Watermark

Add a text or logo watermark to a batch of images, review each result and download individual files or a ZIP.

Open tool — Image Watermark

CSS Gradient Generator

Create linear or radial CSS gradients with editable colors, opacity and stops.

Open tool — CSS Gradient Generator

Color Converter

Convert supported sRGB HEX, RGB and HSL literals with alpha, explicit precision and current code Copy.

Open tool — Color Converter

Image to Text (OCR)

Recognize printed text in local PNG or JPEG images, choose a language and review or correct the result before copying or downloading.

Open tool — Image to Text (OCR)

QR Code Reader

Read one QR code from a local PNG or JPEG and inspect its text or content bytes without opening links.

Open tool — QR Code Reader

Print Size & Resolution Calculator

Calculate print dimensions, required pixels and effective PPI with fit or crop.

Open tool — Print Size & Resolution Calculator

Aspect Ratio Calculator

Find a width-to-height ratio or calculate a matching pixel size from one target dimension.

Open tool — Aspect Ratio Calculator

Image Compressor

Try to fit a JPEG, PNG or WebP within a target file size, with measured results and optional smaller dimensions.

Open tool — Image Compressor

HEIC to JPG

Convert supported HEIC photos locally into full-size JPG copies, with quality and background controls and verified individual or ZIP downloads.

Open tool — HEIC to JPG

Image Converter

Convert supported PNG, JPEG and WebP images locally with batch targets, transparency, background and quality controls, then review and download the encoded files.

Open tool — Image Converter

Photo Collage Maker

Arrange local photos in a grid, adjust crops and spacing, and download PNG or JPEG.

Open tool — Photo Collage Maker

Rotate & Flip Images

Rotate or mirror a local batch of static PNG, JPEG and WebP images, then review and download the processed results.

Open tool — Rotate & Flip Images

Image Cropper

Crop one local JPEG, PNG or WebP to exact pixels with visual and numeric controls. Download PNG or JPEG.

Open tool — Image Cropper

Image Resizer

Resize a JPG, PNG or WebP image by pixels or percentage, preview the result and download it.

Open tool — Image Resizer
View all tools in this category