# Annotations in Plot save as black when image format is PNG, although the REPL shows the correct custom color

**URL:** <https://discourse.julialang.org/t/annotations-in-plot-save-as-black-when-image-format-is-png-although-the-repl-shows-the-correct-custom-color/88277>\
**Category:** General Usage\
**Created:** [October 5, 2022, 8:59am UTC](https://discourse.julialang.org/t/annotations-in-plot-save-as-black-when-image-format-is-png-although-the-repl-shows-the-correct-custom-color/88277 "2022-10-05T08:59:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nash/32/14482_2.png) [@Nash](https://discourse.julialang.org/u/Nash)\
**Post date:** [October 5, 2022, 8:59am UTC](https://discourse.julialang.org/t/annotations-in-plot-save-as-black-when-image-format-is-png-although-the-repl-shows-the-correct-custom-color/88277/1 "2022-10-05T08:59:06Z")

</div>

When I annotate a plot in a custom, non-black, color, and save it as PNG, the image saved does not show the custom colored text, but shows it in black. Please see the following example:

Has anyone encountered this problem and how has it been solved?

```julia
using Plots

# ----------------------------------------------------------------------------------------------------
# The following script works no problem at all, until an annotation in non-black custom color saves as black
# -----------------------------------------------------------------------------------------------------
# Generate chart and save as PNG
# -----------------------------------------------------------------------------------------------------
x = rand(100)
y = x .+ rand(100)
plot(x,y, seriestype = :scatter, size = [750,750])
savefig(my_path*"saved_image.png")
# -----------------------------------------------------------------------------------------------------
# Load image for further processing
# -----------------------------------------------------------------------------------------------------
img_path = my_path*"saved_image.png"
image = load(img_path)
# -----------------------------------------------------------------------------------------------------
# Place whitespace left and right of image
# -----------------------------------------------------------------------------------------------------
top = Gray.(ones(100,750))
bottom = left
processed_image = [top;image;bottom]
# -----------------------------------------------------------------------------------------------------
# Place annotation in custom color, but when saved, the annotation is black
# -----------------------------------------------------------------------------------------------------
plot(processed_image)
Plots.annotate!(375, 50, Plots.text("Text in Custom Color - Not Black", RGB(50/255,200/255,218/255), :centre, 12, "Helvetica Bold"))
savefig(my_path*"savedPNG.png")
# -----------------------------------------------------------------------------------------------------
# Loading the image shows a black title ...
# -----------------------------------------------------------------------------------------------------
# EOF

```

![savedPNG](https://global.discourse-cdn.com/julialang/original/3X/c/9/c94a3464d536934d604007e37c3652d2676ea298.png)
