Sub topic 5
Base Color
This chapter assumes you can create a material, open the Shader Editor, and connect nodes. It also assumes you know what the Principled BSDF node is and how it feeds the Material Output. Image textures get their own chapter. Here the focus is the Base Color input itself: what it means, how to choose values, and what goes wrong.
What Base Color represents
Base Color is the main color of a surface. Its meaning depends on the material type.
- On a dielectric (non-metal such as plastic, wood, paint or skin), it is the diffuse color. This is the color of light that enters the surface, scatters, and comes back out.
- On a metal, it sets the color of the reflection. Gold looks gold because its reflections are tinted, not because it has a diffuse layer.
- With Subsurface, Base Color is also used as the color of the scattered light. This matters for the skin and wax chapter.
- With Transmission, Base Color tints the light that passes through the surface.
Base Color does not include lighting, shadows or highlights. In a physically based material it should look flat and evenly lit, like a photo of the surface under soft, neutral light. Baking shadows or glints into the color usually looks wrong once the real lighting is added.
The color value and its representation
The socket holds four numbers: red, green, blue and alpha. In Python they are floats from 0.0 to 1.0, such as (0.8, 0.05, 0.05, 1.0). The alpha channel of this color is not the material's transparency. Transparency is controlled by the separate Alpha input, covered in a later chapter.
Blender stores these values in a scene-linear color space. The color picker shows values in a display-friendly form, so a hex code you type in the picker is converted to linear values internally. This has two consequences:
- A value of 0.5 in a script is not "half as bright" to your eye. Linear 0.5 looks lighter than a mid gray, because the display applies a curve.
- Hex values and linear values are not interchangeable. If you copy
(0.5, 0.5, 0.5)from a script into the picker's RGB fields, the result may differ from what you expect, depending on which representation the field shows.
Choosing physically plausible values
Real surfaces never reflect all light or none of it. Pure white (1.0) and pure black (0.0) are outside the range of real materials, and they cause problems in rendering. A white surface lit brightly can look blown out and flat. A pure black surface loses all shape because nothing is left to shade.
The table below lists rough guidelines for the picker's display value (the HSV Value slider), not linear numbers.
| Surface | Suggested brightness (Value) | Notes |
|---|---|---|
| Fresh snow, white paper | about 0.85 to 0.9 | Do not use 1.0. |
| Light wall paint, concrete | about 0.5 to 0.7 | Mid-range. |
| Dark wood, soil | about 0.1 to 0.3 | Dark but not black. |
| Charcoal, black rubber | about 0.03 to 0.05 | Never exactly 0. |
| Clean metals | about 0.8 to 0.95 | Colored, bright reflections. |
Strongly saturated colors need care too. A fully saturated red of (1.0, 0.0, 0.0) looks artificial because few real pigments are that pure. Lower the saturation slightly and darken the value, as in the (0.8, 0.05, 0.05) red used in the plastic example below.
Setting Base Color in the interface
There are three common ways to set it.
- Click the color swatch on the Principled BSDF node, or on the Base Color row in the Properties editor's Surface panel, and pick a color in the color picker.
- Click the small dot to the left of the input and pick a node, such as Image Texture, to drive the color from a map.
- Drag from the socket on another node, for example a Mix node or a Color Ramp, into the Base Color input.
The Surface panel in the Material tab shows the same inputs as the node. Editing either one changes the other, because they are the same data.
Setting Base Color with Python
The example below creates a glossy red plastic. It sets Base Color together with Metallic and Roughness, so you can see how the three work as a group.
import bpy
# Create a new material that uses nodes
mat = bpy.data.materials.new(name="RedPlastic")
mat.use_nodes = True
# A new node-based material comes with a Principled BSDF
bsdf = mat.node_tree.nodes.get("Principled BSDF")
bsdf.inputs["Base Color"].default_value = (0.8, 0.05, 0.05, 1.0)
bsdf.inputs["Metallic"].default_value = 0.0
bsdf.inputs["Roughness"].default_value = 0.35
# Assign the material to the active object
obj = bpy.context.active_object
if obj is not None and obj.type == 'MESH':
obj.data.materials.append(mat)The color is a four-value tuple. Passing three values raises an error, so always include the fourth.
The script also sets Metallic to 0.0. Plastic is a dielectric, so the color acts as a diffuse tint. If you changed Metallic to 1.0, the same red would become a red-tinted metallic reflection and the surface would look very different.
Base Color and Metallic
The Metallic input changes how Base Color is used, so the two must be considered together.
- At Metallic 0, Base Color is diffuse color. Specular reflections are mostly white, with strength set by IOR.
- At Metallic 1, the diffuse layer is gone and Base Color tints the reflection.
- Between 0 and 1, the shader blends the two. This is rarely physically meaningful and is best kept for transitions, such as dirt on a metal surface or rust patches.
Metal Base Colors should be bright. A dark metal Base Color reflects little light and looks dull or black, because the metal has no diffuse light to fall back on.
flowchart TDThe diagram above is intentionally omitted from rendering in this chapter. The following diagram shows the actual decision.
Driving Base Color with other nodes
Base Color accepts any node that outputs a color. Common patterns:
- Image Texture supplies a painted or photographed color map. Keep it in sRGB so the colors are interpreted correctly.
- Mix (set to the Color data type) blends two colors with a factor. It is useful for dirt, wear, or tinting a texture.
- Color Ramp converts a grayscale value, such as noise, into a range of colors.
- Hue/Saturation/Value adjusts an existing color without repainting the map.
- Attribute or Color Attribute reads vertex colors, which is handy for per-object variation or painted vertex colors.
When a node drives the socket, the swatch on the Principled BSDF disappears and is replaced by the linked node's name. The stored default value is still there. It returns if you remove the link.
Per-object variation
If many objects share one material, they all look identical. To vary the color without duplicating the material, use an Object Info node and feed its Random output into a Color Ramp or a Hue/Saturation/Value node, then connect that to Base Color. Each object gets a stable random value, so the colors differ but stay consistent between frames.
Common mistakes
- Washed-out or too bright color. Base Color near 1.0 combined with strong lights clips to white. Lower the value or the light strength.
- Color looks different from the hex code. The color picker converts between display and linear values. Compare in the render, not by numbers alone.
- Metal looks black. Base Color is too dark, or there is nothing to reflect. Metal needs a bright color and an environment, such as an HDRI or surrounding objects.
- Color texture looks too bright or too dark. The image is set to Non-Color. Color maps should use sRGB.
- Scripted color has no effect. A texture is linked to Base Color, so the default value is ignored. Remove the link, or edit the texture node instead.
- Shared material changes everywhere. Several objects use the same material data. Make a single-user copy with the duplicate button next to the material name.
Summary of what to remember
Base Color is the surface's flat, unlit color. Keep it away from pure black and pure white, use bright colors for metals, and keep color images in sRGB. Check Metallic whenever a color looks wrong, because it changes how Base Color is used.
Exercise
A scripted material sets Base Color to (0.9, 0.9, 0.9, 1.0) and Metallic to 1.0, but the object renders as a dull black shape in an empty scene with no lights or world lighting. What are two likely reasons, and what would you change?
Show answer
A fully metallic surface has no diffuse layer, so it only shows what it reflects. In an empty scene there is nothing to reflect, so it looks black. Add an HDRI or a world color, or place objects and lights around it. The Base Color itself is fine for a metal, because 0.9 is bright, so the Base Color value is not the cause. If the world is lit and the object is still black, check whether a link on Base Color or Metallic overrides the default values.
Exercise
You want one material shared by twenty rocks, each with a slightly different tint, without making twenty copies. Which nodes would you use, and which input do you connect to?
Show answer
Add an Object Info node and use its Random output as the factor for a Color Ramp or a Hue/Saturation/Value node. Connect the result to the Base Color input of the Principled BSDF. Each object gets its own stable random value, so each rock has a different tint while sharing one material.