How can I get the color hex value of Chakra UI theme color by its name?

Is there a function to get the hex value from a Chakra UI color? Example: getHexValue("gray.300") // "#CBD5E0"