CIEDE2000 Colour Difference Calculator

Delta E 2000, every term shown.

  • Every term shown
  • 34 reference pairs
  • CIE76 beside it
A small rounded clay tray holding soft clay swatch tiles fanned out in graded shades of one colour under soft daylight

The guide

Two Blues Can Sit 4.0 Apart on a Plain Ruler and 2.0 Apart on a Better One

A colour difference formula turns two colours into one number. Plain distance in CIELAB and the CIEDE2000 formula disagree by a factor of two on the same pair, and the gap has reasons.

  • 2.0425 CIEDE2000 for reference pair 1, two blues at equal lightness
  • 4.0011 plain CIE76 distance for the same two blues
  • 1.6080 the same pair if the rotation term is left out
  • 0.56 % jump in a result when the hue gap crosses 180 degrees
  • 34 of 34 reference pairs this page reproduces to 0.0001
Read the full guide Fold the guide 7 min · 14 sources

Take two blues. The first has the CIELAB values L 50, a 2.6772, b -79.7751. The second has L 50, a 0, b -82.7485. They are the same lightness, and on a screen they look like two close shades of one strong blue. The oldest way to put a number on that is the CIE76 distance, which is the straight-line distance between the two points in CIELAB. For this pair it comes to 4.0011. The newer CIEDE2000 formula gives the same pair 2.0425. Neither number is a mistake. They are answers to different questions, and the distance between them is the whole story of why the newer formula exists.

What a difference number is for

A colour difference formula exists so that one number can stand in for a judgement a person would make by eye. The CIE calls its distance measure Delta E, where the letter E comes from the German word for sensation. Every Delta E formula in the family was designed so that a value of 1.0 stands for a just-noticeable difference.

That convention has been adjusted since. The same reference notes that the 1976 formula’s figure for a just-noticeable difference was later put at about 2.3. A later W3C note on gamut mapping says that in CIE Lab with the 2000 formula one just-noticeable difference is 2. The number depends on which formula you ask.

A just-noticeable difference is not a fixed physical quantity. It is a statistical threshold, the change a person notices about half the time, and it shifts with the situation and with the viewer. So any formula that claims to turn it into a ruler is making a prediction, and the useful question is how well it behaves in the places that matter.

A good metric also has to behave the same way everywhere in colour space. If a difference of 2 is invisible between two reds and glaring between two blues, the number cannot be used as a tolerance. That is the real job of the formula: make equal numbers mean roughly equal looks, for greys, for saturated blues, for pale yellows.

Why plain distance misjudges some colours

CIELAB was meant to be a space in which a straight-line distance would predict how different two colours look. It was built with a cube-root curve that imitates the eye’s response, and it works reasonably well for small differences. It is also known to fall short of perceptual uniformity, particularly among blue hues.

The CIE76 formula takes that space at its word. It squares the three differences in L, a and b, adds them, and takes the root. A step of 3 in a counts the same as a step of 3 in b, anywhere, for any colour. The Wikipedia page on colour difference says the formula rates saturated colours too highly compared with other colours.

You can see it with the example above. The two blues differ by 2.6772 in a and 2.9734 in b, and not at all in L. Squaring and adding gives about 16.01, and the root is 4.0011. But both colours are strongly saturated, with chroma near 80. The newer formula treats a gap of about 3 units in chroma as smaller when the colours are already that far from grey, and it divides the gap by a weight that grows with chroma.

A second, quieter fault is hue. The reference page describes a recurring theme in these formulas: special cases by hue, linked to a well-known defect often called blue turns purple. A straight line in Lab through the blue region does not follow the path a colour takes when it is made lighter or darker. A correction has to know where the blues are.

The corrections, one at a time

The CIEDE2000 formula, published in 2001, refines the 1994 definition by adding five corrections. One treats near-neutral colours. Three are weights on the lightness, chroma and hue parts. One is a rotation term for the blue region, with hue angles in the neighbourhood of 275 degrees. This page works each one in a table so you can read it.

The neutral-colour correction changes the a axis before anything else. A factor G, built from the mean chroma of the pair, stretches a for dull colours and leaves saturated ones almost alone. For the blues above it is 0.00007, which does nothing. For a pair of greys it can reach 0.5. Chroma and hue angle are then recomputed from the adjusted a, called a prime.

The hue angle comes from atan2, and its argument order matters. The function takes the y value first, so the call is atan2 of b and a prime. Spreadsheet programs often use the opposite order. The result runs from minus pi to pi in radians, so it must be converted to degrees and moved onto a 0 to 360 scale. When both inputs are zero the angle is set to zero.

Three weights then rescale the differences. S L depends on how far the mean lightness sits from 50. S C is 1 plus 0.045 times the mean new chroma, so a chroma gap is discounted more as colours get more saturated. S H adds a term that depends on the mean hue. In the example, S C is 4.658 and S H is 1.842, so a chroma difference of 2.928 counts as 0.629 and a hue difference of -2.726 counts as -1.480.

Those two numbers alone would give a total of 1.608, because the squares add to 2.5858. The last term is the rotation. The factor R T is -1.7042 for these blues, and its product with the chroma part and the hue part is +1.5859. Added to the squares it makes 4.1716, and the root of that is 2.0425. Leave the term out and the answer is 1.6080, about 21 percent too low.

That is a known failure. The W3C colour specification warns that the formula is complicated and depends critically on the sign of various intermediate values, so implementations are often wrong. This page computes every term in 64-bit arithmetic and checks 34 pairs against reference values worked out separately. All 34 of 34 agree to 0.0001, with the largest gap near 0.00005.

The seam in the formula

The formula is not continuous. The jump comes from the mean hue and from the hue difference, which both change branch when the two hue angles are about 180 degrees apart. The published size of the effect is usually small, less than 4 percent of the result.

Reference pairs 10 and 11 show it. Both compare a colour at L 50, a 2.49, b -0.001 with a colour at L 50, a -2.49 and a tiny b. In pair 10 the second b is 0.001, and in pair 11 it is 0.0011. A change of one ten-thousandth in b moves the result from 7.1792 to 7.2195, a jump of 0.56 %. At exactly 180 degrees the rule keeps the plain difference, and this page uses a tolerance of one billionth of a degree so that rounding noise cannot flip the branch.

The page also applies the neutral rule from the same section. When either new chroma is zero the hue difference is set to zero, and the mean hue becomes the sum of the two angles. Pair 7 compares a pure grey with a faint colour and gives 2.3669 by CIEDE2000 against 2.2361 by CIE76.

How to read a 1, a 2 or a 5

Read a difference as a place on a scale, not a verdict. A value under 1 is below the convention for a just-noticeable difference. A value near 2 is around the figure the W3C note gives for it. Beyond that the number tells you more about the size of the gap than about whether it matters.

Industries set their own limits. The Wikipedia page on colour difference reports a typical printing limit of 2.0 under D50 light, with some processes allowing up to 5.0, while the automotive trade often holds the CMC formula below 0.5. Those limits belong to those jobs. This page does not say what is acceptable for yours.

The conversions are stated, not hidden. For hex colours the page removes the sRGB gamma, applies the four-digit matrix the sRGB page gives, divides by the D65 white of 0.95047, 1 and 1.08883, and applies the CIELAB function. CSS Lab uses a D50 white instead, so Lab values taken from a style sheet use a different white and will not match this page directly. With four digits, white lands within 0.011 of a and b of zero.

The default pair of the tool is two sRGB blues, #2e5cb8 and #3b63b0. Their Lab values are 40.7285, 17.0354, -53.2222 and 42.7453, 11.4853, -45.2652. CIE76 says 9.9088. CIEDE2000 says 2.5896, and 45.6 percent of the squared difference comes from chroma, 34.9 percent from hue and 19.6 percent from lightness. The older formula overstates the gap by a factor of 3.8.

The numbers in this essay were computed twice, with a script using 50-digit arithmetic and with a second program in ordinary floating point, and cross-checked with the CIEDE2000 routine in the scikit-image library. They are not taken from a published table. The page does its arithmetic in the browser, runs large batches in a background thread and formats counts with the browser’s built-in number formatting.

What the formula cannot do is as important as what it does. CIELAB is described as useful for predicting small differences, and the W3C text recommends the 2000 formula especially for differences under 10. This page does not model a screen in a bright room, a glossy print, a colour-blind viewer or a large patch seen at a distance, and it does not say whether a colour fits a gamut. For those you need a measurement made under your own conditions, and a human decision about what counts as close enough.

Sources

Every source consulted for this guide. Links checked November 10, 2026.

  1. Color difference Wikipedia
  2. CIELAB color space Wikipedia
  3. sRGB - Wikipedia Wikipedia
  4. Standard illuminant Wikipedia
  5. Just-noticeable difference Wikipedia
  6. atan2 - Wikipedia Wikipedia
  7. CSS Color Module Level 4 W3C
  8. Math.atan2() MDN Web Docs
  9. Web Workers API MDN Web Docs
  10. Intl.NumberFormat MDN Web Docs
  11. math - Mathematical functions Python Software Foundation documentation
  12. Basic usage mpmath documentation
  13. skimage.color scikit-image documentation
  14. scikit-image licence file scikit-image team