Lab: Color Swapping
On this page
Color Swapping
Definition
- Substituting a specific color in an image with some targeted color for the purpose of exploration, design, image, and creation.
Color Spaces
- Different numerical systems to represent the association of color/colors in a particular display/image.
∙ RGB Color Space

- 3-dimensional space based on an RGB color
- Any color is a mixture of different intensities of the three primary color components (RGB)
∙ HSV Color Space

- Separate components for representing color and intensity
- Hue
- Represents the color of a pixel with a value ranges from 0 to 360 (azimuthal angle)
- Saturation
- amount of
purity and colorfulness of a color.
- Lower saturation ⇒ faded or grayed out.
- Value
- the brightness or darkness of a hue
∙ LAB color space

- Similar to how HSV color space separate color components to represent
2 components to represent color and 1 separate component for brightness value
128 is the neutral value (gray) for both A and B
- L
- Lightness component
- 0:Black100:White
- A
- color component specifying the combination of Red and Green
- a<0(→green)a>0(→red)
- B
- color component specifying the combination of Blue and Yellow
- a<0(→blue)a>0(→yellow)