# \#colors

**URL:** https://discourse.julialang.org/tag/colors/135.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [\[ANN\] Colorfy.jl](https://discourse.julialang.org/t/ann-colorfy-jl/137605)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 0\
**Last updated:** [June 13, 2026, 8:08pm UTC](https://discourse.julialang.org/t/ann-colorfy-jl/137605 "2026-06-13T20:08:47Z")

</div>

Colorfy.jl is a tiny utility to convert any vector of Julia objects into Colors.jl colors: julia\> using Colorfy julia\> values = \[:red, :green, :blue\]; julia\> colorfy(values, alpha=\[0.5, 0.6, 0.7\]) 3-element Vector{RGB…

---

## [How to change the default colors of a series in Makie](https://discourse.julialang.org/t/how-to-change-the-default-colors-of-a-series-in-makie/136738)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 0\
**Last updated:** [April 16, 2026, 12:54pm UTC](https://discourse.julialang.org/t/how-to-change-the-default-colors-of-a-series-in-makie/136738 "2026-04-16T12:54:00Z")

</div>

I’ve found some information about using set\_theme!, but it’s still not clear to me what to do and I would love to find a code snippet. How do I change the default colors used to plot a series in Makie?

---

## [GLMakie: Create specify point color](https://discourse.julialang.org/t/glmakie-create-specify-point-color/131971)

<div class="topic-metadata">

**Author:** [@BananaMaster3](https://discourse.julialang.org/u/BananaMaster3)\
**Replies:** 4\
**Last updated:** [August 31, 2025, 8:40am UTC](https://discourse.julialang.org/t/glmakie-create-specify-point-color/131971 "2025-08-31T08:40:06Z")

</div>

I have this code that graphs a scatterplot of points based off their position in the list points, then each frame runs a function to update their position and then graphs them again. How can I specify the point’s color w…

---

## [How to fix warnings related to Colors](https://discourse.julialang.org/t/how-to-fix-warnings-related-to-colors/128302)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 1:24am UTC](https://discourse.julialang.org/t/how-to-fix-warnings-related-to-colors/128302 "2025-04-23T01:24:38Z")

</div>

When pre-compiling KiteControllers.jl, I get the following warnings: WARNING: using deprecated binding ColorTypes.RGB1 in Colors. , use XRGB instead. WARNING: using deprecated binding Colors.RGB1 in ImageCore. , use Col…

---

## [HDR and ColorTypes](https://discourse.julialang.org/t/hdr-and-colortypes/127648)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 12:13am UTC](https://discourse.julialang.org/t/hdr-and-colortypes/127648 "2025-04-04T00:13:49Z")

</div>

I’ve been working with HDR data, the Radiance RGBE and XYZE types, and I’ve looked a little at LogLuv and OpenEXR, and I’ve run into a problem: the AbstractRGB ColorType doesn’t accommodate the RGB values that Radiance R…

---

## [Makie Categorical colors](https://discourse.julialang.org/t/makie-categorical-colors/118967)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 5\
**Last updated:** [February 11, 2025, 7:03am UTC](https://discourse.julialang.org/t/makie-categorical-colors/118967 "2025-02-11T07:03:52Z")

</div>

How to map a categorical column to a categorical color palette in Makie? using CairoMakie,AlgebraOfGraphics,RDatasets diamonds = dataset("ggplot2","diamonds") In AoG it’s just data(diamonds) \* mapping(:Carat, :Price; …

---

## [In search of categorical color scheme families: dark, same perceptual brightness](https://discourse.julialang.org/t/in-search-of-categorical-color-scheme-families-dark-same-perceptual-brightness/109560)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 24\
**Last updated:** [February 10, 2025, 1:58pm UTC](https://discourse.julialang.org/t/in-search-of-categorical-color-scheme-families-dark-same-perceptual-brightness/109560 "2025-02-10T13:58:53Z")

</div>

I frequently want to plot categorical data on a white background (eg a scatterplot, with various colors for each kind). My ideal color scheme would be reasonably dark, as I am plotting on a white background, have more …

---

## [Default linecolor name in Plots.jl?](https://discourse.julialang.org/t/default-linecolor-name-in-plots-jl/125634)

<div class="topic-metadata">

**Author:** [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Replies:** 8\
**Last updated:** [February 7, 2025, 5:10pm UTC](https://discourse.julialang.org/t/default-linecolor-name-in-plots-jl/125634 "2025-02-07T17:10:39Z")

</div>

Hello. I thought that the default linecolor for plotting lines in Plots.jl was :steelblue. But upon close examination, it seems to be different. It’s actually closer to :dodgerblue. Is there any julia function that retur…

---

## [Coloring similar entries in a matrix with the same color](https://discourse.julialang.org/t/coloring-similar-entries-in-a-matrix-with-the-same-color/124160)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 10\
**Last updated:** [December 26, 2024, 2:45pm UTC](https://discourse.julialang.org/t/coloring-similar-entries-in-a-matrix-with-the-same-color/124160 "2024-12-26T14:45:50Z")

</div>

I have a matrix A with many entries but many of them are very close to each other. A small example of A could be: A = \[1.0001 2.0003 1.0; 2.0 3.0001 2.0004; 1.0001 2.0002 1.0\] The actual matrix A is quite…

---

## [How can I create a fancier REPL prompt with styled strings? (was: Make \`Base.textwidth\` ignore ANSI sequences)](https://discourse.julialang.org/t/how-can-i-create-a-fancier-repl-prompt-with-styled-strings-was-make-base-textwidth-ignore-ansi-sequences/120782)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 12\
**Last updated:** [October 8, 2024, 11:18am UTC](https://discourse.julialang.org/t/how-can-i-create-a-fancier-repl-prompt-with-styled-strings-was-make-base-textwidth-ignore-ansi-sequences/120782 "2024-10-08T11:18:51Z")

</div>

I’m trying to spice up my Julia REPL prompt with ANSI color codes (not just one single color, but multiple colors in the same line). However, it messes up the cursor alignment, because the code in REPL.jl also counts the…

---

## [New colorscheme for Plots.jl 2.0](https://discourse.julialang.org/t/new-colorscheme-for-plots-jl-2-0/117841)

<div class="topic-metadata">

**Author:** [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Replies:** 9\
**Last updated:** [September 16, 2024, 7:08pm UTC](https://discourse.julialang.org/t/new-colorscheme-for-plots-jl-2-0/117841 "2024-09-16T19:08:00Z")

</div>

For the upcoming Plots.jl 2.0 we are thinking about changing the default colorschemes. We identified 3 potential candidates for a new color palette and 4 potential gradients. You can see the combinations in action in thi…

---

## [Is there a way to obtain a colorant from color name provided as a Symbol?](https://discourse.julialang.org/t/is-there-a-way-to-obtain-a-colorant-from-color-name-provided-as-a-symbol/88663)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 3\
**Last updated:** [August 10, 2024, 12:30am UTC](https://discourse.julialang.org/t/is-there-a-way-to-obtain-a-colorant-from-color-name-provided-as-a-symbol/88663 "2024-08-10T00:30:28Z")

</div>

When using plotting packages in julia, colors can be passed using a symbol of their name e.g. :red. After searching in Makie’s source code, I could not find where the conversion from Symbol to colorant was done. At the…

---

## [A good colorscheme encodes the right information on data. Is inferno a good colorscheme?](https://discourse.julialang.org/t/a-good-colorscheme-encodes-the-right-information-on-data-is-inferno-a-good-colorscheme/99962)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 0\
**Last updated:** [June 6, 2023, 7:55pm UTC](https://discourse.julialang.org/t/a-good-colorscheme-encodes-the-right-information-on-data-is-inferno-a-good-colorscheme/99962 "2023-06-06T19:55:05Z")

</div>

There is a thread https://discourse.julialang.org/t/comparison-of-plotting-packages/99860 where users of different plotting/drawing libraries try to convince the readers about the superiority of their tool. No matter w…

---

## [Choosing colors for lines over heatmap](https://discourse.julialang.org/t/choosing-colors-for-lines-over-heatmap/117652)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 9\
**Last updated:** [August 1, 2024, 10:43pm UTC](https://discourse.julialang.org/t/choosing-colors-for-lines-over-heatmap/117652 "2024-08-01T22:43:09Z")

</div>

I have a heatmap in viridis or inferno and I want to draw grid lines on it but I don’t know what color to make them so they’re visible. Is there a good automatic or manual way to pick colors for this? let n = 500 f, ax,…

---

## [Custom divergent colormap with unequal sides](https://discourse.julialang.org/t/custom-divergent-colormap-with-unequal-sides/115484)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 10\
**Last updated:** [July 2, 2024, 2:35pm UTC](https://discourse.julialang.org/t/custom-divergent-colormap-with-unequal-sides/115484 "2024-07-02T14:35:44Z")

</div>

I am working with Makie.jl and I wish to create a custom colormap. Taking any divergent colormap provided by Makie, such as :balance for example, I want to make a colormap that has the same colors as :balance or :delta, …

---

## [How many named colors are there in \`Makie\`?](https://discourse.julialang.org/t/how-many-named-colors-are-there-in-makie/116373)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [June 29, 2024, 7:07am UTC](https://discourse.julialang.org/t/how-many-named-colors-are-there-in-makie/116373 "2024-06-29T07:07:40Z")

</div>

How many named colors (not the color bars) are there in Makie? For example, :red, :blue, :green, :yellow… Where can I find the full list?

---

## [\[RFC\] What should the arithmetic within the FixedPointNumbers be](https://discourse.julialang.org/t/rfc-what-should-the-arithmetic-within-the-fixedpointnumbers-be/46697)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 65\
**Last updated:** [May 11, 2024, 4:54am UTC](https://discourse.julialang.org/t/rfc-what-should-the-arithmetic-within-the-fixedpointnumbers-be/46697 "2024-05-11T04:54:12Z")

</div>

Hi all, I am one of the committers of FixedPointNumbers.jl and we are currently working on the next version, v0.9.0, to be released. This is not directly related to the visualization, but I’m writing this in the visual…

---

## [\[PRE/RFC/ANN\] Color-related packages (YUVColorTypes, CMYKColorTypes, ColorProfiles, HDRColorTypes, HDRImages)](https://discourse.julialang.org/t/pre-rfc-ann-color-related-packages-yuvcolortypes-cmykcolortypes-colorprofiles-hdrcolortypes-hdrimages/113032)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 6\
**Last updated:** [April 20, 2024, 6:57am UTC](https://discourse.julialang.org/t/pre-rfc-ann-color-related-packages-yuvcolortypes-cmykcolortypes-colorprofiles-hdrcolortypes-hdrimages/113032 "2024-04-20T06:57:05Z")

</div>

To all those lamenting the slow development of ColorTypes.jl, Colors.jl, and so on I had to leave the development a few years ago due to somewhat misfortunes. I apologize for the inconvenience. I am in relatively good …

---

## [Specify range of gradient when plotting lines](https://discourse.julialang.org/t/specify-range-of-gradient-when-plotting-lines/113385)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [April 23, 2024, 12:06pm UTC](https://discourse.julialang.org/t/specify-range-of-gradient-when-plotting-lines/113385 "2024-04-23T12:06:12Z")

</div>

Hi all, I would like to apply a color gradient to lines based on their slopes. The problem I am having is that the line with the smallest slope is not visible. I tried changing the the values argument for cgrad, but I c…

---

## [Colours from a \[0,1\] float?](https://discourse.julialang.org/t/colours-from-a-0-1-float/112866)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [April 12, 2024, 11:10am UTC](https://discourse.julialang.org/t/colours-from-a-0-1-float/112866 "2024-04-12T11:10:00Z")

</div>

I have some data that I want to represent in a histogram with a different colour of the bin that depends on a float in the 0,1 range. I can see I can pass to the histogram call a colour parameter with the vector of colo…

---

## [Color conversion from terminal color to Colors.jl color](https://discourse.julialang.org/t/color-conversion-from-terminal-color-to-colors-jl-color/111889)

<div class="topic-metadata">

**Author:** [@Julia2001](https://discourse.julialang.org/u/Julia2001)\
**Replies:** 5\
**Last updated:** [March 22, 2024, 12:43am UTC](https://discourse.julialang.org/t/color-conversion-from-terminal-color-to-colors-jl-color/111889 "2024-03-22T00:43:05Z")

</div>

Hi, how can I convert the “one integer” terminal color consumed by printstyled() to a Colors.jl color usable within Luxor e.g.?

---

## [Color gradient doesn't work](https://discourse.julialang.org/t/color-gradient-doesnt-work/111734)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 6\
**Last updated:** [March 21, 2024, 9:39pm UTC](https://discourse.julialang.org/t/color-gradient-doesnt-work/111734 "2024-03-21T21:39:50Z")

</div>

I have a for loop. I want the color used to be evenly spaced from a color gradient such as inferno. I read various stuff online, but none works. for example trying the palette = : inferno in ax.plot of pythonplot gives: …

---

## [Animating a graph changing edge colors](https://discourse.julialang.org/t/animating-a-graph-changing-edge-colors/111782)

<div class="topic-metadata">

**Author:** [@qotsalo](https://discourse.julialang.org/u/qotsalo)\
**Replies:** 7\
**Last updated:** [March 20, 2024, 11:26am UTC](https://discourse.julialang.org/t/animating-a-graph-changing-edge-colors/111782 "2024-03-20T11:26:33Z")

</div>

Hi there, I want to animate some simple graphs with changing colors in their edges. I thought it would be simple but I am definitely not a Julia expert and I am a bit stuck. I tried animating just the color of a single…

---

## [Pythonplot, set 2 plots with same color](https://discourse.julialang.org/t/pythonplot-set-2-plots-with-same-color/111692)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 1\
**Last updated:** [March 16, 2024, 9:36am UTC](https://discourse.julialang.org/t/pythonplot-set-2-plots-with-same-color/111692 "2024-03-16T09:36:24Z")

</div>

This little program: using PythonPlot x = \[1,2\] y = \[2,3\] fig1 = pyplot.figure() ax1 = fig1.add\_subplot(1, 1, 1) ax1.plot(x,y, '.', markersize=10) ax1.plot(x,y,'-') gives : I want to use what I would have done in…

---

## [Did Logging lose colors on Julia 1.11?](https://discourse.julialang.org/t/did-logging-lose-colors-on-julia-1-11/110416)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 7:27pm UTC](https://discourse.julialang.org/t/did-logging-lose-colors-on-julia-1-11/110416 "2024-02-19T19:27:25Z")

</div>

My log messages seem to have lost their color. Is this happening for anyone else on nightly?

---

## [Is there a package that supports gamut calculations for the xyY color space?](https://discourse.julialang.org/t/is-there-a-package-that-supports-gamut-calculations-for-the-xyy-color-space/108128)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [January 3, 2024, 1:52pm UTC](https://discourse.julialang.org/t/is-there-a-package-that-supports-gamut-calculations-for-the-xyy-color-space/108128 "2024-01-03T13:52:48Z")

</div>

Is there a Julia package that allows checking if a color in XYZ or xyY space is valid, and if not, allow finding a nearest point (eg by bisecting the ray from the white point)?

---

## [Override or change opacity of a given RGBA color?](https://discourse.julialang.org/t/override-or-change-opacity-of-a-given-rgba-color/106880)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 4\
**Last updated:** [December 1, 2023, 5:05pm UTC](https://discourse.julialang.org/t/override-or-change-opacity-of-a-given-rgba-color/106880 "2023-12-01T17:05:24Z")

</div>

I’ve seen a construct like (:red, 0.3) to control the color and opacity separately. What I’d like to achieve here is to change the opacity of a given RGBA color. What’s the idiomatic way? At the end of this message, I …

---

## [Scaling color gradient with custom function](https://discourse.julialang.org/t/scaling-color-gradient-with-custom-function/106200)

<div class="topic-metadata">

**Author:** [@jreaso](https://discourse.julialang.org/u/jreaso)\
**Replies:** 9\
**Last updated:** [November 14, 2023, 4:21pm UTC](https://discourse.julialang.org/t/scaling-color-gradient-with-custom-function/106200 "2023-11-14T16:21:55Z")

</div>

I have a contourf plot which uses a color gradient but I want the values’ color to have a specific meaning. Specifically, I am using the :jet color gradient and I want any value in \[0,3\] to be blue to green, any value i…

---

## [The scale-change of "cgrad" is invalidated when colorschemes are jointed](https://discourse.julialang.org/t/the-scale-change-of-cgrad-is-invalidated-when-colorschemes-are-jointed/100966)

<div class="topic-metadata">

**Author:** [@Fluorite-Erbite](https://discourse.julialang.org/u/Fluorite-Erbite)\
**Replies:** 2\
**Last updated:** [June 30, 2023, 4:33am UTC](https://discourse.julialang.org/t/the-scale-change-of-cgrad-is-invalidated-when-colorschemes-are-jointed/100966 "2023-06-30T04:33:09Z")

</div>

Julia 1.9.0 downloaded from the official (Sorry for my poor English) I want to join 2 colorschemes, before which each scale is change (:log). Example, cs1 = reverse( cgrad( palette( \[:red, :orange, :yellow, :lawngree…

---

## [How to plot 3d data while using a gradient color depending on the "time" of the point?](https://discourse.julialang.org/t/how-to-plot-3d-data-while-using-a-gradient-color-depending-on-the-time-of-the-point/99988)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 2\
**Last updated:** [June 7, 2023, 7:47am UTC](https://discourse.julialang.org/t/how-to-plot-3d-data-while-using-a-gradient-color-depending-on-the-time-of-the-point/99988 "2023-06-07T07:47:25Z")

</div>

Sorry for the confusing title, I’m not really sure how to summarize it. Basically, I have a list of 3D points which are order according the time these points were taken. In a sense, you can think of these as 4D points, w…

[Next page](https://discourse.julialang.org/tag/colors/135.md?match_all_tags=true&page=1&tags%5B%5D=colors)
