色コード(#RRGGBB)とは?
- #のあとに6文字
- 赤・緑・青の順
- RGBでも表せる
ウェブやデザインで、色を表すときによく見る、「#FF0000」のような文字。これが色コードです。画像から色コードを調べる で調べた色は、この形で表示されます。
色コードとは
色を、赤(R)・緑(G)・青(B)の、3つの光の量で表したものです。それぞれ0〜255の数を、16進数の2桁(00〜FF)で書き、「#」を付けて並べます。
- 「#」+ 赤の2桁 + 緑の2桁 + 青の2桁
例
- #FF0000:赤(赤が最大、緑・青が0)
- #00FF00:緑
- #0000FF:青
- #FFFFFF:白(すべて最大)
- #000000:黒(すべて0)
- #808080:灰色(中間)
手順(調べる)
- 「画像を選ぶ」で、画像を選びます。
- 画像の上を、タップ(クリック)します。
- 表示された色コードの横の「コピー」を押します。
- 「コピーしました」と出たら、貼り付けます。
16進数とは
0〜9に加えて、A〜F(10〜15)を使う、16を基本とする数え方です。2桁で、0〜255を表せます。
- 00 = 0
- 0A = 10
- FF = 255
どこで使うか
- ウェブサイトのデザイン(CSS)
- ブログの色の設定
- スライドやドキュメントの色指定
- デザインソフトの色指定
短い書き方
「#FFAA00」のように、2桁が同じ組み合わせなら、「#FA0」と短く書けることがあります。使うアプリによって、対応が違います。通常は、6桁で入力するのが確実です。
つまずきやすい点
- 「#」が付いていない:アプリによっては、「#」が必要です。コピーした内容を確認します。
- アルファベットの大文字・小文字:ほとんどの場合、どちらでも同じ色です。
- 印刷と画面で色が違う:印刷は、別の仕組みで色を出します。
よくある質問
色名(赤、青など)で指定できますか?
アプリによっては可能です。細かい色を指定するなら、色コードが確実です。
まとめ
色コードは、#と6桁の文字で色を表す書き方。コピーして、そのまま貼り付けて使えます。
画像から色コードを調べるを使う(無料)あわせて使えるツール
- 画像の切り抜き・回転:画像を、好きな範囲や比率で切り抜きます。回転もできます。
- 画像を白黒・セピアなどに加工する:画像を白黒・セピアにしたり、明るさを変えたりします。
- 画像のサイズ(ピクセル)を変える:画像の大きさを、横幅・縦・割合で変えます。
同じツールの、ほかの解説
What Is a Color Code (#RRGGBB)?
- Six characters after #
- Red, green, blue in order
- Also written as 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.
Summary
A colour code is a notation of "#" and six characters. Copy it and paste it as it is.
Use "Pick Color Codes from an Image" (free)Tools that go well with this
- Crop & Rotate Image: Crop an image to any area or ratio, and rotate it.
- Apply Black-and-White, Sepia and Other Looks: Turn images black and white or sepia, or change brightness.
- Resize Images by Pixel Size: Resize images by width, height or percentage.