Spanish Violet (#4C2882)

HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.

Preview

Sample Text
This is how text may look on this color.
Best text color: #FFFFFF
Contrast vs white: 10.86:1 — vs black: 1.93:1

Color values

  • HEX #4C2882
  • RGB rgb(76, 40, 130)
  • HSL hsl(264, 69%, 50%)
  • CMYK cmyk( 41.54, 69.23, 0, 49.02 )

Tags

Tip: tags are heuristic suggestions (helpful for browsing and inspiration).

Color Harmonies

Colors that pair well with #4C2882 based on color theory relationships.

Complementary

The color directly opposite on the color wheel — creates maximum contrast and vibrance.

Spanish Violet
#4C2882 Base
#5E8228
Analogous

Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.

Spanish Violet
#4C2882 Base
#283182
#792882
Triadic

Three colors equally spaced 120° apart — bold, balanced, and visually rich.

Spanish Violet
#4C2882 Base
#824C28
#28824C
Split-Complementary

Two colors flanking the complement — high contrast with less tension than full complementary.

Spanish Violet
#4C2882 Base
#827928
#318228
Tetradic (Square)

Four colors at 90° intervals — rich variety, best when one color dominates.

Spanish Violet
#4C2882 Base
#822831
#5E8228
#288279
Monochromatic

Shades and tints of the same hue — cohesive, elegant, and easy to work with.

Spanish Violet
#4C2882 Base
#0B0614
#2A1647
#3A1E63
#5E32A1
#6E3ABC
#9870D3
Shades & Tints

Darker shades and lighter tints of Spanish Violet, generated by adjusting lightness while keeping the same hue and saturation.

Shades (darker)

#0B0614
#180D2A
#251440
#321A56
#3F216C
Spanish Violet #4C2882 Base
#6837B2
#895BCD
#AB8BDB
#CEBBEA
#F1EBF9
CSS & SCSS Snippets

Ready-to-use code snippets for #4C2882. Click the copy button to copy any snippet to your clipboard.

CSS Properties
/* Background */
.element {
    background-color: #4C2882;
}

/* Text */
.element {
    color: #4C2882;
}

/* Border */
.element {
    border: 1px solid #4C2882;
}
CSS Gradient
/* Linear gradient to complementary */
.element {
    background: linear-gradient(
        to right,
        #4C2882,
        #93D92B
    );
}

/* Radial gradient */
.element {
    background: radial-gradient(
        circle,
        #4C2882,
        #93D92B
    );
}
SCSS Variable
// SCSS variable
$spanish-violet: #4C2882;

// With RGB channels (useful for rgba() usage)
$spanish-violet-r: 76;
$spanish-violet-g: 40;
$spanish-violet-b: 130;

// Usage
.element {
    background-color: $spanish-violet;
    color: rgba($spanish-violet-r, $spanish-violet-g, $spanish-violet-b, 0.8);
}
Color Blindness Simulation

How Spanish Violet appears to people with different types of color vision deficiency.

Normal Vision #4C2882 How the color appears with full color vision.
Deuteranopia #353582 Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
Protanopia #2E2E82 Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
Tritanopia #3C3D3D Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
Achromatopsia #3D3D3D Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
Similar Named Colors

The closest named colors to Spanish Violet ranked by perceptual difference (Delta-E 2000 — lower = more similar).

Spanish Violet #4C2882 Base
Regalia #522D80 ΔE 1.88
Blue-magenta Violet #553592 ΔE 3.98
Rebecca Purple #663399 ΔE 5.88
Indigo #4B0082 ΔE 6.08

How to use this color

  1. Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
  2. Use CMYK when preparing print assets (posters, packaging, brochures).
  3. Check contrast before using it for text or important UI elements.