CSS uses hex codes (#FF5733). JavaScript and many APIs use RGB values (rgb(255, 87, 51)). Design tools may use one or the other. Converting between formats manually involves math with hexadecimal — or you can just use a converter.
Try Hex-RGB Converter — free, private, unlimited.
Open Hex-RGB Converter