Q:

hex color

/* CSS color codes work in format like HTML (rgb, color codes[#123456])*/

/* So here is a way to use this! */

<style>
	/* you can use any piece of the code for this */
	.example{
		color: #ABCDEF;
	}
	.example2{
		color: rgb(50, 50, 50);
	}
</style>

/* so yeah, upvote this answer if this helped! */
2
Use the below in any chromium-based browser for this
3
# HEX COLOR CODES
Format: #rrggbb
example: #abcdef

# How to decode?
F -- Full/Max value.
0 -- Off/Min value.

Color codes can range from #000000 (black) to #ffffff (white)
...or anything in between, #5a8d33 (Cactus green)

# Where can you easily find/create one?
Google has an built in HEX color picker
https://www.google.com/search?q=color+picker
W3Schools has a color code finder
https://www.w3schools.com/colors/colors_picker.asp
3
Use htmlcolorcodes.com for this
4
<!DOCTYPE html>
<!-- Code inside there--><html>
    <head>
        <meta charset="utf-8">
        <title>Lists Page</title>
        <style>
            body {
                background-color: black;
                text-shadow: 0px 0px 10px blue;
                font-family: Trebuchet MS;
                font-size: 20px;
            }
            h1 {
                color: white;
            }
            p {
                color:rgb(255, 230, 8);
                text-shadow: 0px 1px 30px blue;

            }
            h2 {
                color:white;
                font-size: 30px;
            }
            ul {
                list-style-type: circle;
                color:rgb(255, 0, 98);
                text-shadow: 0px 0px 5px blue;
            }
            ol {
                color:rgb(250, 105, 259);
                line-height: 30px;
            }
            h4 {
                color: rgb(0, 255, 55);
            }
    </style>
      </html>
0

<script>
    function parseAndGetHex(s){
    var a = s.split("(")[1].split(")")[0];
        a = a.split(",");
        return rgbToHex(parseInt(a[0]),parseInt(a[1]),parseInt(a[2]));
    }

    function rgbToHex(r, g, b) {
      return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
    }

      document.getElementById("rgb_input").addEventListener('change',function(){
		 document.getElementById("hex_output").value=parseAndGetHex(this.value);
      });

</script>

<input id="rgb_input" type="text" placeholder="rgb(255,255,255)">
<input id="hex_output" type="text" placeholder="">
-1

New to Communities?

Join the community