https://kr.mathworks.com/help/matlab/ref/rgb2hex.html
rgb2hex - Convert RGB triplets to hexadecimal color codes - MATLAB
This MATLAB function converts the specified RGB triplets to strings containing six-digit hexadecimal color codes.
hexadecimal color codesconvertrgbtripletsmatlab