Ask coding questions

← Back to all posts
What are all the color options?
LillyTulips

I tried googling but some colors work some done, for this website where can I learn all the available colors. Like I saw someone else use "cornsilk" I never would have guessed that's a color!. Where do you learn all these colors?
-Thank you

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Grace-Elizabeth
FelicityKombe
MichelleZac
SamuelSeidun
GraceOpong
BasariaAhayanut
CrystalLuna
GeorgiaVogt
ABIGAILSHELTON
techtuesday
Comments
hotnewtop
Coder100

There are 3 ways to make colors.

Name

color: blue;
https://www.w3schools.com/colors/colors_names.asp
https://www.cssportal.com/css3-color-names/
https://www.rapidtables.com/web/css/css-color.html
https://www.tutorialrepublic.com/css-reference/css-color-names.php

Hex

You will have to use a colorpicker for this,
color: #f00;

RGB

Use a colorpicker.
color: rgba(255, 0, 0, 0.5);

HSL

Use a colorpicker
color: hsl(0, 100%, 50%);

LillyTulips

thankyou this is exactly what I [email protected]

Coder100

no problem!! :D @LillyTulips

elonvengas

More....Color Codes

BhaskarRana

The first thing you need is a color wheel to understand the actual concept of colors and color harmonies.
There are various color pickers that can help you understand the color theory practically.
There is a very nice article about colors and color harmonies along with a color picker that I found online Here is the link you can read more about it. https://programmersportal.com/html-color-picker/

Bookie0

hey there!

wdym by color options? if you mean how to colors text:

you can use ansi escape codes to color text in the console; here are some colors you can use in Python:

You can also have colors in python:

if you mean what are all the colors in the world, then we have about 10 million:

First of all, scientists have determined that in the lab we can see about 1,000 levels of dark-light and about 100 levels each of red-green and yellow-blue. So that's about 10 million colors right there.

(from here: https://www.azcentral.com/story/opinion/op-ed/claythompson/2015/12/14/how-many-colors-are-there/77311176/#:~:text=First%20of%20all%2C%20scientists%20have,10%20million%20colors%20right%20there.)

but you can also use a hex color picker to get many many many colors:

https://www.google.com/search?q=hex+color+picker&oq=hex+color+picker&aqs=chrome..69i57j35i39j0l6.1478j0j7&sourceid=chrome&ie=UTF-8

to find the available colors to use in CSS, you can just put the hex number or put the name: https://www.w3schools.com/colors/colors_picker.asp
https://www.w3schools.com/w3css/w3css_colors.asp

And if you need some good colors that go well with each other: https://coolors.co/