什麼是顏色程式碼(#RRGGBB)?
- # 後面有 6 個字元
- 依次是紅、綠、藍
- 也可以用 RGB 表示
The strings like "#FF0000" often seen on the web and in design are colour codes. Colours found with Pick Color Codes from an Image are shown in this form.
What a colour code is
A way to express a colour as the amounts of three lights: red (R), green (G) and blue (B). Each is a number from 0 to 255, written as two hexadecimal digits (00–FF), lined up with a "#".
- "#" + two digits of red + two digits of green + two digits of blue
Examples
- #FF0000: red (red at maximum, green and blue 0)
- #00FF00: green
- #0000FF: blue
- #FFFFFF: white (all at maximum)
- #000000: black (all 0)
- #808080: grey (the middle)
Steps (finding one)
- Choose an image with "Choose an image".
- Tap (click) on the image.
- Press "Copy" next to the colour code shown.
- When "Copied" appears, paste it.
What hexadecimal is
A way of counting based on 16, using A–F (10–15) in addition to 0–9. Two digits can express 0–255.
- 00 = 0
- 0A = 10
- FF = 255
Where it is used
- Website design (CSS)
- Colour settings for blogs
- Colour specification in slides and documents
- Colour specification in design software
Short notation
If each pair of digits is the same, as in "#FFAA00", it can sometimes be written short as "#FA0". Support differs by app. Entering six digits is usually safest.
Common stumbling blocks
- No "#" attached: some apps need the "#". Check what you copied.
- Upper or lower case letters: in most cases they give the same colour.
- Print and screen colours differ: print produces colour by a different mechanism.
Frequently asked questions
Can I specify by colour name (red, blue and so on)?
Possible in some apps. For fine colours, colour codes are more reliable.
小結
A colour code is a notation of "#" and six characters. Copy it and paste it as it is.
使用「從圖片中獲取顏色程式碼」(免費)搭配使用的工具
- 裁剪與旋轉圖片:將圖片裁剪到任意區域或比例,並可旋轉。
- 把圖片變成黑白、棕褐色等效果:把圖片變成黑白或棕褐色,或調整明暗。
- 按畫素調整圖片大小:按寬度、高度或百分比調整圖片大小。