I'm using xcolor.sty's nifty wheel function to define a color scheme based on a single base color. So, for example:


makes base a pale green color, and complement a similarly pale blue (1/4 of the way round the color wheel).

Is there a way to similarly define colors by changing the saturation or brightness of an existing color?


You could use \definecolorseries:


will let you use moresaturated!![1] for a somewhat more saturated colour, moresaturated!![2] for an even more saturated one, and so on. (But beware overflow: once the saturation reaches 1, it's reset to zero. Here moresaturated!![4] is less saturated than base.)

Obviously you can use the same trick to go down in saturation, or up or down in brightness.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.