FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Docs] Replace the universal distance threshold table by smnandre · Pull Request #41 · phpcolor/phpcolor · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .md  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
24 changes: 22 additions & 2 deletions docs/reference/distance.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,33 @@ $d = Color::distance($c1, $c2, 'CMC(2:1)');
```

### Interpretation

The values below are the usual reference points for CIEDE2000 on small color patches.

| Delta E | Perception |
| :--- | :--- |
| **< 1.0** | Not perceptible by human eyes |
| **1.0 – 2.0** | Perceptible through close observation |
| **2.0 – 10.0** | Perceptible at a glance |
| **11.0 – 49.0** | Colors are more similar than opposite |
| **100.0** | Colors are exact opposites |
| **> 10.0** | Clearly different colors |

There is no universal upper bound, and no value means "opposite". Black against white
scores exactly 100 in CIEDE2000, but that is the length of the lightness axis, not a maximum:
green against magenta reaches 108.6.

The scale also depends on the algorithm. The same black and white pair scores 100 in DeltaE94
and 97.9 in CMC. The values below compare every pair among the eight corners of the sRGB cube:
black, white, red, green, blue, cyan, magenta, and yellow. They are sample maxima, not universal
upper bounds.

| Algorithm | Black vs white | Largest among sRGB cube corners |
| :--- | ---: | ---: |
| CIEDE2000 | 100.0 | 108.6 |
| DeltaE94 | 100.0 | 148.9 |
| CMC(2:1) | 97.9 | 207.7 |

Calibrate your own thresholds against samples from your project rather than reusing a fixed
table, especially when comparing large areas, text, or colors seen under different lighting.

## Examples

Expand Down
Loading

Back | FazBrowse Home | New Git URL