diff --git a/src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs b/src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs
index 6ca5d00fb..ee19d8c2b 100644
--- a/src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs
+++ b/src/ImageSharp/Quantizers/Palette/PaletteQuantizer.cs
@@ -27,7 +27,7 @@ namespace ImageSharp.Quantizers
///
/// A lookup table for colors
///
- private readonly Dictionary colorMap = new Dictionary();
+ private readonly Dictionary colorMap = new Dictionary();
///
/// List of all colors in the palette
@@ -76,7 +76,7 @@ namespace ImageSharp.Quantizers
protected override byte QuantizePixel(TColor pixel)
{
byte colorIndex = 0;
- int colorHash = pixel.GetHashCode();
+ TPacked colorHash = pixel.PackedValue;
// Check if the color is in the lookup table
if (this.colorMap.ContainsKey(colorHash))