Commit b84700c9 authored by Nicolas Lenz's avatar Nicolas Lenz
Browse files

Readme

parent bc31987b
Pipeline #726 passed with stages
in 28 seconds
# palette
# Palette
This is an R script that generates my color palette (one orange, one a complementing blue/purple) from some parameters using HCL color space. This uses the [colorspace](https://colorspace.r-forge.r-project.org/) R package.
The colors, translated into RGB color space and in HTML notation:
Orange palette: \
`#660000, #820000, #a10000, #c02b00, #da4e00, #e97300, #f59300, #ffb100, #ffcd5e, #ffe58d, #fff8b1`
Blue palette: \
`#191228, #2b253c, #403854, #564c6e, #6c6189, #82789e, #9890b0, #afa8c2, #c5c0d5, #dcd8e7, #f2effa`
The palette is built based on smooth run through the [HCL](https://en.wikipedia.org/wiki/HCL_color_space) color model in [CIELUV](https://en.wikipedia.org/wiki/CIELUV) color space. That means that the color transition in the palette should be perceptually uniform. Both color palettes also match each other in brightness.
![The HCL coordinates of the palettes in a graph.](https://document.pages.eisfunke.com/palette/plot.png)
Note that HCL is not the same as the better known [HSL or HSV](https://en.wikipedia.org/wiki/HSL_and_HSV) color models. They are based on the RGB color space and are not based on perception. So if you make a color palette that changes evenly through the lightness value in HSL it will not actually be a even transition of how light the colors *look*.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment