APCA Web Text Contrast Calculator
Calculate signed APCA Lc for opaque sRGB text and background colors.
Processing stays in your browser. Uses apca-w3 0.1.9 and its web-content license. APCA Lc is not the WCAG 2 contrast ratio and this tool does not issue a conformance pass/fail. It is limited to web text on self-illuminated displays.
How to use the apca web text contrast calculator
Start with the supplied example and review web text hex color, background hex color. Replace it with your own data, choose Run tool, and check the result against the method and limits below. Copy or download only after review; edits clear the previous output.
How the tool works
The unmodified Myndex apca-w3 library converts sRGB colors to its luminance model and computes signed Lc. Positive polarity indicates dark text on a light background; negative polarity indicates light text on a dark background.
Worked example
View the example inputs
- Web text HEX color
- #222222
- Background HEX color
- #ffffff
Black text on white has a strong positive Lc. Reversing the colors produces a negative value, whose absolute magnitude need not be identical.
Good to know
Uses apca-w3 0.1.9 and its web-content license. APCA Lc is not the WCAG 2 contrast ratio and this tool does not issue a conformance pass/fail. It is limited to web text on self-illuminated displays.
Sources and implementation notes
Myndex apca-w3 0.1.9 is used without modifying its algorithm, constants or polarity. Web-content use only. License and notices.
Implemented by DevBricks Technologies. Method notes updated . References describe the underlying format, method or API. Local processing runs on your device. Any public provider queries are described above and start when you run the lookup.
Review image quality at the size that matters
Keep the original image and identify the dimensions and file format required by its destination. Pixel dimensions describe resolution, while file size describes stored bytes; changing one does not always change the other as expected. Start with a representative image and review any format, transparency or animation restrictions stated above before processing a larger set.
Inputs and settings explained
- Web text HEX color
- Enter the web text hex color exactly as required by the example. Check spelling, whitespace and any stated naming rules before running the operation. Use a small test value first; an accepted text field does not by itself establish that the value is appropriate for the system that will consume the result.
See the demonstration value
#222222
- Background HEX color
- Enter the background hex color exactly as required by the example. Check spelling, whitespace and any stated naming rules before running the operation. Use a small test value first; an accepted text field does not by itself establish that the value is appropriate for the system that will consume the result.
See the demonstration value
#ffffff
How to review the result
Use the compact preview to check the overall result, then inspect the exported image at its intended display size. Look around fine edges, small text, gradients and transparent areas. A checkerboard represents transparency in a preview; it is not normally part of the image itself. Some formats flatten transparency or omit animation, and a visually similar result can have different metadata or color handling. Compare the dimensions and actual file size with your requirement before replacing the original.
- Check orientation, crop boundaries and subject edges against the original image.
- Inspect transparency on both light and dark backgrounds when the output supports it.
- Open the exported file in the destination application and confirm its dimensions and format.
Common questions about this workflow
Does a smaller preview mean the downloaded image is smaller?
The preview is displayed compactly so the page remains usable. The actual export dimensions are controlled by the operation and its settings. Read the reported dimensions or open the downloaded file to check its true resolution.
Why should I preserve the original?
Resizing, lossy compression, background removal and conversion can discard information. Editing the original again usually gives a better starting point than repeatedly transforming an already reduced result. Keep separate filenames until you accept the export.
Built by DevBricks Technologies. Found an unexpected result in APCA Web Text Contrast Calculator? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.