TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As I know, in ConTeXt stable, one can use \color[gray:3]{} to display the text inside the brackets with a very light gray color, e.g.:

    \color[gray:3]{This is some text.}

After upgrading to ConTeXt beta, this no longer works in my document. \color[red]{}, however, does change the text to red.

  • Was the syntax for creating gray colors changed in recent betas?
  • How can I create a range of gray colors (from white to black) using numbers in ConTeXt?
share|improve this question
I think we'll need a bit of a clue on versions here – Joseph Wright Sep 11 '12 at 8:12
I have ConTeXt version 2012.08.14. I followed the instructions here: wiki.contextgarden.net/Colors#Choosing_a_color_model – Village Sep 11 '12 at 8:19
What about defining the colour with \definecolor[gray:3][s=.8]? You can also have a look at \definepalet – Marco Sep 11 '12 at 8:26
I can confirm this behavior. Seems to be a regression bug. Please report this to the context mailing list. – Aditya Sep 11 '12 at 13:25
Bug aside, you can iterate through the X11 color definitions to achieve the grayscale gradient: \setupcolor [x11] \dostepwiserecurse{100}{0}{-1}{\color[gray\recurselevel]{foo\space}}. The value determines the percentage of white. – Philipp Gesang Sep 12 '12 at 15:16
up vote 2 down vote accepted

Based on the solution of Philipp Gesang of the context mailing list:

Use \setupcolor[dem] to get scaled colors.


  \framed[background=color, backgroundcolor=gray:3]{testing}

(I am using background color so that the result is easier to visualize).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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