diff --git a/coders/gradient.c b/coders/gradient.c
index f6895bf..c4e09f6 100644
--- a/coders/gradient.c
+++ b/coders/gradient.c
@@ -140,6 +140,8 @@
   (void) GradientImage(image,LocaleCompare(image_info->magick,"GRADIENT") == 0 ?
     LinearGradient : RadialGradient,PadSpread,&start_color,&stop_color,
     exception);
+  if (IssRGBColorspace(image->colorspace) != MagickFalse)
+    (void) SetImageColorspace(image,RGBColorspace,exception);
   return(GetFirstImageInList(image));
 }