diff --git a/coders/avs.c b/coders/avs.c
index 37644f7..76a03c9 100644
--- a/coders/avs.c
+++ b/coders/avs.c
@@ -361,7 +361,7 @@
       Write AVS header.
     */
     if (IsRGBColorspace(image->colorspace) == MagickFalse)
-      (void) TransformImageColorspace(image,RGBColorspace,exception);
+      (void) TransformImageColorspace(image,sRGBColorspace,exception);
     (void) WriteBlobMSBLong(image,(unsigned int) image->columns);
     (void) WriteBlobMSBLong(image,(unsigned int) image->rows);
     /*