All 59 tests passed.

test01_rgb
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToRgbTriplet|fefdfc}} 254, 253, 252 254, 253, 252
test02_cmyk_black
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCmyk|precision=3|000}} 0.000%, 0.000%, 0.000%, 100.000% 0.000%, 0.000%, 0.000%, 100.000%
test03_cmyk_white
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCmyk|precision=3|fff}} 0.000%, 0.000%, 0.000%, 0.000% 0.000%, 0.000%, 0.000%, 0.000%
test04_cmyk_turquoise
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCmyk|precision=3|40E0D0}} 71.429%, 0.000%, 7.143%, 12.157% 71.429%, 0.000%, 7.143%, 12.157%
test05_cmyk_morchid
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCmyk|precision=3|BA55D3}} 11.848%, 59.716%, 0.000%, 17.255% 11.848%, 59.716%, 0.000%, 17.255%
test06_cmyk_gold
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCmyk|precision=3|FFD700}} 0.000%, 15.686%, 100.000%, 0.000% 0.000%, 15.686%, 100.000%, 0.000%
test07_cmyk_gray
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCmyk|precision=3|808080}} 0.000%, 0.000%, 0.000%, 49.804% 0.000%, 0.000%, 0.000%, 49.804%
test08_hsl_black
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|precision=3|000}} 0.000°, 0.000%, 0.000% 0.000°, 0.000%, 0.000%
test09_hsl_white
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|precision=3|FFF}} 0.000°, 0.000%, 100.000% 0.000°, 0.000%, 100.000%
test10_hsl_crimson
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|precision=3|DC143C}} 348.000°, 83.333%, 47.059% 348.000°, 83.333%, 47.059%
test11_hsl_msgreen
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|precision=3|00FA9A}} 156.960°, 100.000%, 49.020% 156.960°, 100.000%, 49.020%
test12_hsl_rblue
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|precision=3|4169E1}} 225.000°, 72.727%, 56.863% 225.000°, 72.727%, 56.863%
test13_hsv_black
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|precision=3|000}} 0.000°, 0.000%, 0.000% 0.000°, 0.000%, 0.000%
test14_hsv_white
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|precision=3|FFF}} 0.000°, 0.000%, 100.000% 0.000°, 0.000%, 100.000%
test15_hsv_crimson
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|precision=3|DC143C}} 348.000°, 90.909%, 86.275% 348.000°, 90.909%, 86.275%
test16_hsv_msgreen
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|precision=3|00FA9A}} 156.960°, 100.000%, 98.039% 156.960°, 100.000%, 98.039%
test17_hsv_rblue
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|precision=3|4169E1}} 225.000°, 71.111%, 88.235% 225.000°, 71.111%, 88.235%
test18_cielch_black
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|000}} 0.000, 0.000, 0.000° 0.000, 0.000, 0.000°
test19_cielch_white
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|FFF}} 100.000, 0.000, 0.000° 100.000, 0.000, 0.000°
test20_cielch_red
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|F00}} 53.237, 179.038, 12.177° 53.237, 179.038, 12.177°
test21_cielch_yellow
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|FF0}} 97.139, 107.086, 85.874° 97.139, 107.086, 85.874°
test22_cielch_green
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|0F0}} 87.736, 135.790, 127.715° 87.736, 135.790, 127.715°
test23_cielch_cyan
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|0FF}} 91.115, 72.086, 192.177° 91.115, 72.086, 192.177°
test24_cielch_blue
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|00F}} 32.301, 130.690, 265.874° 32.301, 130.690, 265.874°
test25_cielch_magenta
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|F0F}} 60.323, 137.405, 307.715° 60.323, 137.405, 307.715°
test26_cielch_grey
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|808080}} 53.585, 0.000, 0.000° 53.585, 0.000, 0.000°
test27_cielch_awhite
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|FAEBD7}} 93.731, 19.577, 59.249° 93.731, 19.577, 59.249°
test28_cielch_onyx
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|353839}} 23.273, 1.833, 213.883° 23.273, 1.833, 213.883°
test29_cielch_licorice
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|precision=3|1A1110}} 5.943, 2.917, 18.604° 5.943, 2.917, 18.604°
test30_cmyk_darkestred
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCmyk|010000}} 0%, 0%, 0%, 100% 0%, 0%, 0%, 100%
test31_cmyk_darkestgreen
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCmyk|000100}} 0%, 0%, 0%, 100% 0%, 0%, 0%, 100%
test32_cmyk_darkestblue
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCmyk|000001}} 0%, 0%, 0%, 100% 0%, 0%, 0%, 100%
test33_hsl_neargrey1
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|808081}} 0°, 0%, 50% 0°, 0%, 50%
test34_hsl_neargrey2
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|808180}} 0°, 0%, 50% 0°, 0%, 50%
test35_hsl_darkestred
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|010000}} 0°, 0%, 0% 0°, 0%, 0%
test36_hsl_darkestgreen
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|000100}} 0°, 0%, 0% 0°, 0%, 0%
test37_hsl_darkestblue
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|000001}} 0°, 0%, 0% 0°, 0%, 0%
test38_hsl_lightestcyan
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|FEFFFF}} 0°, 0%, 100% 0°, 0%, 100%
test39_hsl_lightestmagenta
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|FFFEFF}} 0°, 0%, 100% 0°, 0%, 100%
test40_hsl_lightestyellow
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsl|FFFFFE}} 0°, 0%, 100% 0°, 0%, 100%
test41_hsv_neargrey1
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|EEEEEF}} 0°, 0%, 94% 0°, 0%, 94%
test42_hsv_neargrey2
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|EEEFEE}} 0°, 0%, 94% 0°, 0%, 94%
test43_hsv_darkestred
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|010000}} 0°, 0%, 0% 0°, 0%, 0%
test44_hsv_darkestgreen
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|000100}} 0°, 0%, 0% 0°, 0%, 0%
test45_hsv_darkestblue
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToHsv|000001}} 0°, 0%, 0% 0°, 0%, 0%
test46_cielch_neargrey
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|111011}} 5, 0, 0° 5, 0, 0°
test47_cielch_darkestred
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|010000}} 0, 0, 0° 0, 0, 0°
test48_cielch_darkestgreen
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|000100}} 0, 0, 0° 0, 0, 0°
test49_cielch_darkestblue
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|000003}} 0, 0, 0° 0, 0, 0°
test50_cielch_lightestcyan
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|FEFFFF}} 100, 0, 0° 100, 0, 0°
test51_cielch_lightestmagenta
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|FFFEFF}} 100, 0, 0° 100, 0, 0°
test52_cielch_lightestyellow
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexToCielch|FFFFFC}} 100, 0, 0° 100, 0, 0°
test53_mix1
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexMix|00F|FF0}} BCBCBC BCBCBC
test54_mix2
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexMix|00F|0F0|25}} 0089E1 0089E1
test55_mix_limit1
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexMix|00F|0F0|0}} 0000FF 0000FF
test56_mix_limit2
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexMix|00F|0F0|100}} 00FF00 00FF00
test57_mix_clamp
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexMix|00F|0F0|200}} 00FF00 00FF00
test58_mix_negative
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexMix|00F|0F0|-50}} 0000FF 0000FF
test59_mix_proportion_range
Text Expected Actual
checkY {{#invoke:Color/sandbox|hexMix|00F|0F0|30|min=20|max=90}} 006AEE 006AEE

Start a discussion about improving the Module:Color/testcases page

Start a discussion