# How to obtain literal value of colors from the color cycle in Makie.jl?

**URL:** <https://discourse.julialang.org/t/how-to-obtain-literal-value-of-colors-from-the-color-cycle-in-makie-jl/75413>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [January 29, 2022, 11:43am UTC](https://discourse.julialang.org/t/how-to-obtain-literal-value-of-colors-from-the-color-cycle-in-makie-jl/75413 "2022-01-29T11:43:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [January 29, 2022, 11:43am UTC](https://discourse.julialang.org/t/how-to-obtain-literal-value-of-colors-from-the-color-cycle-in-makie-jl/75413/1 "2022-01-29T11:43:04Z")

</div>

How to I obtain the `n` -th color of the color cycle in literal value? I know I can do `Cycled(n)` , but how do I get its value? Like `"#abcdefg"` or whatever it is.

---

<div class="post-metadata">

**Author:** ![fbanning](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fbanning/32/14972_2.png) [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Post date:** [February 8, 2022, 4:10pm UTC](https://discourse.julialang.org/t/how-to-obtain-literal-value-of-colors-from-the-color-cycle-in-makie-jl/75413/3 "2022-02-08T16:10:43Z")

</div>

I think you can just access the `palette` attribute of the corresponding axis, see [here](https://makie.juliaplots.org/stable/documentation/theming/#palettes).
