A comprehensive guide to related colors, including how they're identified, their relationships, and how to use them effectively in design and digital applications.
Related colors are colors that share visual or perceptual relationships with a base color, often used to create harmonious color schemes. These relationships can be based on color theory principles, mathematical formulas, or perceptual qualities that make colors feel connected or complementary to each other.
Create stunning, harmonious color palettes instantly with our AI-powered generator. Upload an image or choose a base color to get professional results.
AI-trained on thousands of artworks • Instant palette generation • Export in multiple formats • Perfect color harmony guaranteed
Related colors are colors that have a meaningful relationship to a reference color. These relationships can be:
Understanding these relationships helps designers create cohesive, balanced, and visually appealing color schemes.
/* Example of related colors in a design system */
:root {
/* Base color */
--primary: #3366CC;
/* Related colors based on different relationships */
--primary-complement: #CC6633; /* Complementary */
--primary-analogous1: #3333CC; /* Analogous */
--primary-analogous2: #33CCCC; /* Analogous */
--primary-triadic1: #CC3366; /* Triadic */
--primary-triadic2: #66CC33; /* Triadic */
}Based on positions on the color wheel, harmonic relationships include:
/* Finding a complementary color */
function getComplementaryColor(hue) {
return (hue + 180) % 360;
}/* Finding analogous colors */
function getAnalogousColors(hue, angle = 30) {
return [
(hue - angle + 360) % 360,
hue,
(hue + angle) % 360
];
}/* Finding triadic colors */
function getTriadicColors(hue) {
return [
hue,
(hue + 120) % 360,
(hue + 240) % 360
];
}/* Finding split-complementary colors */
function getSplitComplementaryColors(hue, angle = 30) {
const complement = (hue + 180) % 360;
return [
hue,
(complement - angle + 360) % 360,
(complement + angle) % 360
];
}/* Finding tetradic colors */
function getTetradicColors(hue, angle = 60) {
return [
hue,
(hue + angle) % 360,
(hue + 180) % 360,
(hue + 180 + angle) % 360
];
}Based on variations of the same hue:
/* Generating monochromatic colors in HSL */
function getMonochromaticColors(hue, count = 5) {
const colors = [];
// Generate variations with different lightness values
for (let i = 0; i < count; i++) {
const lightness = 20 + (i * 15); // Range from 20% to 80% lightness
colors.push({ h: hue, s: 70, l: lightness });
}
return colors;
}/* Generating tints and shades */
function getTintsAndShades(hex, count = 5) {
const { r, g, b } = hexToRgb(hex);
const tints = [];
const shades = [];
// Generate tints (lighter versions)
for (let i = 1; i <= count; i++) {
const tintFactor = i / (count + 1);
tints.push({
r: Math.round(r + (255 - r) * tintFactor),
g: Math.round(g + (255 - g) * tintFactor),
b: Math.round(b + (255 - b) * tintFactor)
});
}
// Generate shades (darker versions)
for (let i = 1; i <= count; i++) {
const shadeFactor = i / (count + 1);
shades.push({
r: Math.round(r * (1 - shadeFactor)),
g: Math.round(g * (1 - shadeFactor)),
b: Math.round(b * (1 - shadeFactor))
});
}
return { tints, shades };
}Based on how colors are perceived together:
Traditional methods for finding related colors:
Modern approaches to generating related colors:
Software can generate related colors using mathematical formulas:
/* Example of a function to generate related colors */
function getRelatedColors(baseColor) {
const { h, s, l } = hexToHsl(baseColor);
return {
complement: hslToHex((h + 180) % 360, s, l),
analogous: [
hslToHex((h - 30 + 360) % 360, s, l),
hslToHex((h + 30) % 360, s, l)
],
triadic: [
hslToHex((h + 120) % 360, s, l),
hslToHex((h + 240) % 360, s, l)
],
splitComplement: [
hslToHex((h + 150) % 360, s, l),
hslToHex((h + 210) % 360, s, l)
],
tetradic: [
hslToHex((h + 60) % 360, s, l),
hslToHex((h + 180) % 360, s, l),
hslToHex((h + 240) % 360, s, l)
],
monochromatic: [
hslToHex(h, s, Math.max(0, l - 0.3)),
hslToHex(h, s, Math.min(1, l + 0.3)),
hslToHex(h, Math.max(0, s - 0.3), l),
hslToHex(h, Math.min(1, s + 0.3), l)
]
};
}/* Conceptual example of finding perceptually related colors */
function getPerceptuallyRelatedColors(labColor, count = 5) {
const relatedColors = [];
// Generate colors with similar lightness but varied hue
for (let i = 0; i < count; i++) {
const hueShift = (i - Math.floor(count/2)) * 20;
// Convert to LCh (lightness, chroma, hue) for easier hue manipulation
const lch = labToLch(labColor);
// Modify hue while keeping lightness and chroma similar
const newLch = {
l: lch.l,
c: lch.c,
h: (lch.h + hueShift + 360) % 360
};
// Convert back to Lab and then to RGB
relatedColors.push(lchToLab(newLch));
}
return relatedColors;
}Related colors are essential in UI design for:
/* Example of a UI color system with related colors */
:root {
/* Primary color and variations */
--primary: #0066CC;
--primary-light: #4D94FF;
--primary-dark: #004C99;
/* Complementary accent color */
--accent: #CC6600;
--accent-light: #FF9940;
--accent-dark: #994C00;
/* Semantic colors derived from primary */
--info: var(--primary);
--success: #00CC66; /* Related through triadic relationship */
--warning: var(--accent);
--error: #CC0066; /* Related through tetradic relationship */
}Related colors help establish brand identity:
Related colors improve data comprehension:
/* Example of a sequential color palette */
.heat-map {
--scale-1: #EFF3FF; /* Lightest */
--scale-2: #BDD7E7;
--scale-3: #6BAED6;
--scale-4: #3182BD;
--scale-5: #08519C; /* Darkest */
}/* Example of a diverging color palette */
.temperature-map {
--cold-extreme: #053061; /* Dark blue */
--cold-medium: #4393C3; /* Medium blue */
--neutral: #F7F7F7; /* Neutral midpoint */
--hot-medium: #D6604D; /* Medium red */
--hot-extreme: #67001F; /* Dark red */
}/* Example of a categorical color palette */
.category-chart {
--cat-1: #1F77B4; /* Blue */
--cat-2: #FF7F0E; /* Orange - complementary */
--cat-3: #2CA02C; /* Green - triadic */
--cat-4: #D62728; /* Red - tetradic */
--cat-5: #9467BD; /* Purple - related through split-complementary */
}Guidelines for effective use of related colors:
Technical aspects of implementing related colors:
/* Example of implementing related colors with CSS variables */
:root {
/* Base colors */
--blue-base: #0066CC;
--orange-base: #CC6600; /* Complementary */
--purple-base: #6600CC; /* Triadic */
--green-base: #00CC66; /* Triadic */
/* Functional mappings */
--primary: var(--blue-base);
--accent: var(--orange-base);
--secondary1: var(--purple-base);
--secondary2: var(--green-base);
/* Create tints and shades for each base color */
--blue-100: #CCE0FF; /* Tint */
--blue-200: #99C2FF;
--blue-300: #66A3FF;
--blue-400: #3385FF;
--blue-500: var(--blue-base);
--blue-600: #0052A3; /* Shade */
--blue-700: #003D7A;
--blue-800: #002952;
--blue-900: #001429;
/* Repeat for other base colors */
}Considerations beyond technical relationships:
Deeper exploration of color relationship theories:
Modern approaches to color relationships:
/* Conceptual example of an ML-based color relationship function */
async function getAIGeneratedRelatedColors(baseColor, style, context) {
// This would call an API that uses a trained ML model
// to generate related colors based on the base color,
// desired style, and application context
const response = await fetch('https://api.example.com/color-ai', {
method: 'POST',
body: JSON.stringify({
baseColor,
style, // e.g., 'modern', 'corporate', 'playful'
context // e.g., 'web', 'print', 'product'
})
});
return response.json();
}Current developments in related color usage:
Explore these comprehensive pillar articles related to Related Colors
A comprehensive guide to tetradic color schemes - sophisticated four-color harmonies that use two complementary pairs arranged in rectangular or square formations on the color wheel, providing maximum color variety while maintaining structured relationships essential for dynamic design compositions, brand systems, and advanced color theory applications.
A comprehensive guide to split-complementary color schemes - sophisticated three-color harmonies that combine a base color with two colors adjacent to its complement, creating balanced visual contrast with reduced tension compared to direct complementary pairs, essential for refined design compositions, brand identity systems, and advanced color theory applications.
Comprehensive guide to triadic color schemes - three colors evenly spaced around the color wheel that create balanced, vibrant, and dynamic visual compositions with mathematical precision and artistic appeal.
Comprehensive guide to complementary colors - opposing hues on the color wheel that create maximum visual contrast, dynamic tension, and powerful design impact through scientific color relationships and perceptual phenomena.
Discover more about Related Colors and related color theory concepts
A comprehensive guide to split-complementary color schemes - sophisticated three-color harmonies that combine a base color with two colors adjacent to its complement, creating balanced visual contrast with reduced tension compared to direct complementary pairs, essential for refined design compositions, brand identity systems, and advanced color theory applications.
A comprehensive guide to tetradic color schemes - sophisticated four-color harmonies that use two complementary pairs arranged in rectangular or square formations on the color wheel, providing maximum color variety while maintaining structured relationships essential for dynamic design compositions, brand systems, and advanced color theory applications.
Comprehensive guide to triadic color schemes - three colors evenly spaced around the color wheel that create balanced, vibrant, and dynamic visual compositions with mathematical precision and artistic appeal.
Comprehensive guide to complementary colors - opposing hues on the color wheel that create maximum visual contrast, dynamic tension, and powerful design impact through scientific color relationships and perceptual phenomena.
Comprehensive guide to analogous color schemes - adjacent hues on the color wheel that create natural harmony, visual cohesion, and sophisticated design solutions through subtle color relationships and graduated transitions.
A comprehensive guide to monochromatic color schemes - sophisticated single-hue harmonies that create unified visual experiences through systematic variations in saturation, lightness, and tonal relationships, essential for elegant design compositions, brand consistency, and advanced color theory applications requiring cohesive aesthetic unity.
Discover more color terminology and concepts in our comprehensive glossary.
Browse Full Glossary