How to extract decimal values of red / green / blue tricolor values from-sharpFF3366 in js, and how to directly represent a color with these three values in css3

topic description

sources of topics and their own ideas

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Sep.26,2021

FF-> r-> 15 x 16 ^ 1 + 15 x 16 ^ 0-> 255,
33-> g-> 3 x 16 ^ 1 + 3 x 16 ^ 0-> 51,
66-> b-> 6 x 16 ^ 1 + 6 x 16 ^ 0-> 102

css is represented by rgb (255,51102).


hexadecimal to decimal, for example, ff is 255

Menu