Convert Rgb to Xyz | Xyz to rgb converter
RgbTheRgbcolorspaceconsistsofallpossiblecolorsthatcanbemadebythecombinationofred,green,andbluelight.Itsapopularmodelinphotography,television,andcomputergraphics.XyzXyzisanadditivecolorspacebasedonhowtheeyeinterepretsstimulusfromlight.UnlikeotheradditivergblikeRgb,Xyzisapurelymathmaticalspaceandtheprimarycomponentsare"imaginary",meaningyoucantcreatetherepresentedcolorinthephysicalbyshininganysortoflightsrepresentingx,y,andz.Itscomplicatedtoexplaininanutshell,soreadmoreaboutithere:.Lookingfort...
RgbThe Rgb color space consists of all possible colors that can be made by the combination of red, green, and blue light. Its a popular model in photography, television, and computer graphics.
XyzXyz is an additive color space based on how the eye intereprets stimulus from light. Unlike other additive rgb like Rgb, Xyz is a purely mathmatical space and the primary components are "imaginary", meaning you cant create the represented color in the physical by shining any sort of lights representing x, y, and z. Its complicated to explain in a nutshell, so read more about it here:
. Looking for the code?All calculations were doing using the open source ColorMine[1] library.
The code used for the Rgb and Xyz conversions can be found on Github:
Conversion Example: var rgb = new Rgb();var xyz = rgb.To...