Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
RGB color model
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Geometric representation== {{See also|RGB color spaces}} [[File:RGB color solid cube.png|thumb|The RGB color model mapped to a cube. The horizontal x-axis as red values increasing to the left, y-axis as blue increasing to the lower right and the vertical z-axis as green increasing towards the top. The origin, black is the vertex hidden from view.]] Since colors are usually defined by three components, not only in the RGB model, but also in other color models such as [[Lab color space|CIELAB]] and [[Y'UV]], among others, then a [[Three-dimensional space|three-dimensional]] [[volume]] is described by treating the component values as ordinary [[Cartesian coordinate system|Cartesian coordinates]] in a [[Euclidean space]]. For the RGB model, this is represented by a cube using non-negative values within a 0β1 range, assigning black to the origin at the vertex (0, 0, 0), and with increasing intensity values running along the three axes up to white at the vertex (1, 1, 1), diagonally opposite black. An RGB triplet (''r'',''g'',''b'') represents the three-dimensional coordinate of the point of the given color within the cube or its faces or along its edges. This approach allows computations of the [[Color difference|color similarity]] of two given RGB colors by simply calculating the [[euclidean distance|distance]] between them: the shorter the distance, the higher the similarity. Out-of-gamut computations can also be performed this way.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)