col2lab | R Documentation |
R color to Lab colourspace conversion. Calculated with Observer. = 2°, Illuminant = D65.
col2lab(col, ref_X = 95.047, ref_Y = 100, ref_Z = 108.883)
col |
vector of hex or color names |
ref_X, ref_Y, ref_Z |
Reference values for Observer= 2°, Illuminant= D65 |
The formulas used to convert from RGB to XYZ and XYZ to Lab are from http://www.easyrgb.com/en/math.php and the reference values are from http://www.brucelindbloom.com/index.html?ColorCheckerCalcHelp.html
vector of L, a and b values
Other color:
color_conv()
,
lab2rgb()
col2lab("red") col2lab("#FF0000")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.