Search code examples
colorsimagemagickrgb

Imagemagick different colors with same hex code


I'm trying to match colors manipulated with ImageMagick to those generated by LaTeX. The following is a screenshot of Imagemagick's help pages (at https://imagemagick.org/script/color.php). It strikes me that fuchsia, magenta, and magenta1 appear slightly different visually, yet all have the exact same rgb() definitions and Hex codes. Any clue?

enter image description here


Solution

  • I have a clue) Their zebra-colorized table is messing with your eyes) All the 3 colors are the same, just the middle one gets darker because of the table beneath. Someone used background-color: rgb(255, 0, 255); on table cells, AND used box-shadow for background of a row, that's why we are seeing a color mixture. Otherwise, topmost background would win. You can check that with DevTools. DEvtools img Note how on this pic all the 3 colors are now the same, as I disable table's background.