Skip to content

Spanish Violet (#4C2882)

The hex code for Spanish Violet is #4C2882. It is rgb(76, 40, 130) in RGB, hsl(264, 53%, 33%) in HSL, and about cmyk(42%, 69%, 0%, 49%) in CMYK — a dark purple. White text is the more readable choice on this background.

#4C2882
HEX#4C2882
RGBrgb(76, 40, 130)
HSLhsl(264, 53%, 33%)
HSVhsv(264, 69%, 51%)
CMYKcmyk(42%, 69%, 0%, 49%)
OKLCHoklch(37.6% 0.143 297.4)
LABlab(25.21% 32.57 -45.31)
LCHlch(25.21% 55.80 305.71)

Colors Closest to Spanish Violet

Spanish Violet is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every purple in the library.

#4C2882 Channel Values

How Spanish Violet breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 76 · G 40 · B 1308-bit channels as sent to the display
HSLH 264° · S 53% · L 33%Easiest model for building lighter and darker variants
HSVH 264° · S 69% · V 51%Matches the picker in most design tools
CMYKC 42% · M 69% · Y 0% · K 49%Approximate ink mix; confirm with an ICC profile before printing
Luminance10.86:1 vs white · 1.93:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Spanish Violet background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text10.86:1AA normal AA large AAA normal
TextBlack text1.93:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #4C2882 in the contrast checker.

Colors That Go With Spanish Violet

Pairings derived from color-wheel relationships. The complementary color sits opposite Spanish Violet; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Spanish Violet

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #4C2882.

How Spanish Violet Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#4C2882
Protanopia#303082
Protanomaly#3D2D82
Deuteranopia#373782
Deuteranomaly#403282
Tritanopia#3D3D3D
Tritanomaly#433660
Achromatopsia#3D3D3D

Test a full palette in the color blindness simulator.

Using #4C2882 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--spanish-violet: #4C2882;
CSS backgroundbackground-color: #4C2882;
Tailwind configcolors: { 'spanish-violet': '#4C2882' }
SwiftUIColor(red: 0.298, green: 0.157, blue: 0.510)
Android XML<color name="spanish_violet">#4C2882</color>
SVG fillfill="#4C2882"

More Purple Colors

Spanish Violet sits in the purplefamily. These are its neighbours across that family's full range, each with its own breakdown.

#4C2882 Frequently Asked Questions

What is the hex code for Spanish Violet?

The hex code for Spanish Violet is #4C2882. That is rgb(76, 40, 130) in RGB, hsl(264, 53%, 33%) in HSL, and approximately cmyk(42%, 69%, 0%, 49%) in CMYK.

What is the RGB value of #4C2882?

#4C2882 is rgb(76, 40, 130) — red 76, green 40, and blue 130 on the 0-255 scale.

What is the CMYK value of #4C2882?

#4C2882 converts to approximately cmyk(42%, 69%, 0%, 49%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #4C2882 be black or white?

White text is the more readable choice. #4C2882 scores 10.86:1 against white and 1.93:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #4C2882 as a CSS color keyword?

No. #4C2882 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is rebeccapurple (#663399) at a CIE76 distance of 9.57, which is clearly related but distinguishable side by side.

Open Spanish Violet in a Tool

Keep exploring: every purple in the color library, the guide to shades of purple, or the full color library.