cemant color scheme

2021-03-09
2021-03-16

source

github.com/blobject/cemant
src.agaric.net/b/cemant/

introduction

Cemant (pronouced sə’mænt) is an 18-color palette for use with terminals, text editors, and minimalistic desktop environments.

It is inspired by the light gray that was once (still is?) so popular in GUIs and utilises a lowish-contrast set of accompanying colors to round out the palette. Hues and values were calculated over the CIELAB color space with the aid of the golden ratio to add some Reason, even if the calculations would have no other scientific or ergonomic basis.

palette

palette

let λ = 0.618 over 100
    χ = 0.618 over 128
namergbRGBlLab
bg fg bg, fgb9bdc536383f76.4: 2λ223.6: λ30-04.4: -χ7
00d 08dd dark16161d575a61eigengrau38.2: λ20-04.4: -χ7
01r 09rr reda32c2dcf554d38.2: λ252.8: λ24+48.9: +χ2+30.2: +χ3
02g 10gg green4b7d0872a33647.2: 2λ361.8: λ-30.2: -χ3+48.9: +χ2
03y 11yy yellow916814ba8d3b47.2: 2λ361.8: λ+11.5: +χ5+48.9: +χ2
04b 12bb blue3c56aa667ad338.2: λ252.8: λ24+11.5: +χ5-48.9: -χ2
05m 13mm magenta91328cba59b338.2: λ252.8: λ24+48.9: +χ2-30.2: -χ3
06c 14cc cyan237e6f4ea49447.2: 2λ361.8: λ-30.2: -χ30
07l 15ll light92959dd2d6de61.8: λ85.4: λ+λ30-04.4: -χ7

φ

Colors were chosen in a systematic yet subjective way, influenced by perception and the golden ratio. The resulting set is not entirely symmetrical, but still not too bad.

For some reason, with lightness set to equal, the colors beneath the x = y line (ie. r, m, b) seemed brighter/stronger than those above (ie. y, g, c), so an offset was introduced in their respective lightnesses.

lab

Note that the labeling of the graphs is not standard mathematical notation; it is shown this way just as a shorthand. For instance, the B color with a blue parameter (-χ^) at -2 actually means (* -128 (^ 0.618 2)).

screenshot

msgcat

msgcat --color=test (msgcat provided by gettext)

root/page/cemant