Reading a code and going on from it: a screen eyedropper in Chrome, Edge or Opera on a computer, harmony schemes, and a palette you export for code.
Downside
It needs a Bravely account, and the eyedropper button isn't shown in Safari, Firefox or a phone's browser.
What it doesn’t do
A hex code can only describe an sRGB color, so a color outside that range has no hex code.
The finder doesn't sample your screen. For a color that is on your screen, use one of the tools listed above.
The browser's color control picks opaque colors only. For transparency, type the eight-digit code.
The name it shows is the closest CSS color name, not an official name for that code.
It doesn't read hsv(), hwb(), lab() or oklch() values.
It doesn't keep a list of the colors you look up.
Good to know
What CSS accepts
Any of the four lengths, in either letter case, wherever a color goes.
Read more
CSS takes a hex code of four lengths and no others, so a code with five or seven digits isn't a color. The # is part of the code in a stylesheet, though the finder on this page also reads a code typed without it. Letter case doesn't matter: #34D399 and #34d399 are one color.
A hex code works wherever a stylesheet takes a color, and so do rgb() and hsl() values, which is why the three can stand in for one another.
Hex, RGB and HSL in CSS
Three ways to write one color, each handy for a different job.
Read more
The CSS specification notes that a hex code is shorter than the same color written in rgb(). rgb() shows the three channels as plain numbers. hsl() describes the color as a hue, a saturation and a lightness, and the specification calls that more intuitive than RGB: you can guess at a color and then adjust it. Its own example is a green at hue 120 that is lime green at 50% lightness, dark green at 25% and light green at 75%.
HSV, the fourth notation our color picker shows, isn't part of CSS. It is the model behind that picker's square, where one direction is saturation and the other is brightness. To use an HSV color in a stylesheet, convert it to one of the other three.
Frequently asked questions
What is a hex color code?
A hex color code is a # followed by 3, 4, 6 or 8 base-16 digits, written with 0 to 9 and a to f. In the usual six-digit form the three pairs are red, green and blue, each from 00 to ff, which is 0 to 255. #34d399 is red 52, green 211 and blue 153.
How do I read a hex code?
Split it into pairs and read each pair as a number: multiply the first digit by 16 and add the second, counting a to f as 10 to 15. In #34d399, 34 is 3 times 16 plus 4, or 52. d3 is 13 times 16 plus 3, or 211. 99 is 9 times 16 plus 9, or 153. A higher pair means more of that color.
What is the difference between #fff and #ffffff?
None: they are the same white. A three-digit code is the short form of a six-digit one, read by doubling each digit, so #123 is #112233. The short form can write only 4,096 colors, against about 17 million for six digits.
What do 4 and 8 digit hex codes mean?
The extra digit or pair is alpha, the color's opacity: 00 is fully transparent and ff is fully opaque. #34d39980 is the same green at about half strength, because 80 is 128 of 255. A four-digit code is the short form, doubled the same way as three digits.
How do I find a hex code?
Type its name or pick it in the finder at the top of this page and the code appears. For a color on your screen, use an eyedropper: the tools listed on this page read any pixel. On a Mac, the Bravely Color Picker menu bar app copies the hex code of the pixel you pick; it is free with a Bravely account and needs macOS 14 or later. For a color in a photo, the image color picker reads the pixel you click.
What is the hex code for white and for black?
White is #ffffff and black is #000000: every channel at its highest, and every channel at zero. The table on this page lists the codes people look up most.