def xyz_rgb(xyz):
    """
	Convert tuple from the CIE XYZ color space to the sRGB color space.

	Conversion is based on that the XYZ input uses an the D65 illuminate with a 2° observer angle.
	https://en.wikipedia.org/wiki/Illuminant_D65

	sRGB (standard Red Green Blue): https://en.wikipedia.org/wiki/SRGB
	CIE XYZ: https://en.wikipedia.org/wiki/CIE_1931_color_space
	"""
    x = xyz[0] / 100.0
    y = xyz[1] / 100.0
    z = xyz[2] / 100.0
    r = x * 3.2404542 + y * -1.5371385 + z * -0.4985314
    g = x * -0.969266 + y * 1.8760108 + z * 0.041556
    b = x * 0.0556434 + y * -0.2040259 + z * 1.0572252
    r = r * 255.0
    g = g * 255.0
    b = b * 255.0
    return round(r), round(g), round(b)
