OTHER · LOCAL CALCULATOR

Contrast Ratio Calculator

Use the contrast ratio calculator to find out whether the color contrast ratio of your website is accessible or not.

Enter values

How it works

This calculator evaluates the displayed equation variants locally in your browser. Enter the known values; results are shown for equations whose required inputs are available.

Check units, assumptions and professional guidance before using results for medical, financial, legal, engineering or safety-critical decisions.

Formulas used by this calculator

The Contrast Ratio Calculator page lists 45 inputs, but every relation behind it depends on a lookup table or helper routine that the in-browser solver cannot evaluate, so it cannot return a dependable result. Use the related calculators linked on this page, or check the figures against an authoritative reference.

Inputs

FieldName in formulasCan be solved for
B DarkBDarkInput only
C DarkCDarkInput only
G DarkGDarkInput only
H DarkHDarkInput only
K DarkKDarkInput only
L DarkLDarkInput only
M DarkMDarkInput only
R DarkRDarkInput only
S DarkSDarkInput only
Y DarkYDarkInput only
H DarkhDarkInput only
S DarksDarkInput only
V DarkvDarkInput only
B LightBLightInput only
C LightCLightInput only
G LightGLightInput only
H LightHLightInput only
K LightKLightInput only
L LightLLightInput only
M LightMLightInput only
R LightRLightInput only
S LightSLightInput only
Y LightYLightInput only
H LighthLightInput only
S LightsLightInput only
V LightvLightInput only
RL DarkRL_DarkInput only
RL LightRL_LightInput only
Text typetext_typeInput only
HSL RL DarkHSL_RL_DarkInput only
HSV RL DarkHSV_RL_DarkInput only
Color modelcolor_modelInput only
CMYK RL DarkCMYK_RL_DarkInput only
HSL RL LightHSL_RL_LightInput only
HSV RL LightHSV_RL_LightInput only
CMYK RL LightCMYK_RL_LightInput only
Contrast RatioContrastRatioInput only
RL Dark knownRL_Dark_knownInput only
RL Light knownRL_Light_knownInput only
Text type knowntext_type_knownInput only

5 more inputs are available in the calculator form.