Template:Color temperature/doc

returns the color of a black body at a desired temperature. A polynomial approximation over the mired is used.

Use
Template expects a temperature between and  in first parameter. Color is automatically labeled with the temperature unless the parameter  is filled. tag can be used to return only an hexadecimal color code.

Recommended display

 * Color space : sRGB
 * White point : D65
 * Gamma : 2.2

Warning

 * Each color use the maximum peak luminance available on the screen because lightness variations of a black body are too high to be displayed on a regular display device.
 * Colors below are out of sRGB gamut. White had to be added (relative colorimetric mapping).
 * is the minimum value because it returns pure red color in sRGB color space.

Display color temperature
returns

Customize label
returns

Return hexadecimal code
returns.

Feed a table
 NAOS  Blue supergiant star 40,000 K - 44,000 K

Summary
{	"params": { "1": {			"label": "Temperature in kelvins", "example": "8907", "type": "number", "required": true, "description": "Temperature of the black body between 837 K and 1000000 K"		}, "2": {			"label": "hexval", "example": "hexval", "type": "string", "description": "hexval is an optional tag used to return only the hexadecimal value" },		"text": { "label": "Label", "example": "text=Candle", "type": "string", "description": "Text displayed next to the color", "default": "Temperature in kelvins" }	},	"description": "Display the color of a black body at a desired temperature", "paramOrder": [ "1",		"2",		"text" ] }

Color accuracy
The template returns almost exactly the colors of the gradient below. More information on image description.