#7B1FA2

#7B1FA2 — Color Codes & Palette

#7B1FA2  ·  rgb(123, 31, 162)  ·  hsl(282, 68%, 38%)

Color Codes

Format Value
HEX #7B1FA2
RGB rgb(123, 31, 162)
HSL hsl(282, 68%, 38%)

Shades of #7B1FA2

#6E1C92#611881#54156F#47125E#3A0F4D#2D0B3C#20082B#13051A

Tints of #7B1FA2

#8F24BC#A229D6#AD43DB#B85CE0#C476E5#CF90EA#DAA9EF#E5C3F4

Color Pairings & Harmony

Complementary
#47A31F
Analogous +30°
#A31F88
Analogous −30°
#391FA3
Triadic +120°
#A37B1F
Triadic −120°
#1FA37B

Contrast & Accessibility (WCAG 2.1)

vs. White (#FFFFFF)
8.20:1 — AAA pass for normal text
vs. Black (#000000)
2.56:1 — Fail

CSS Snippet

.element {
  color: #7B1FA2;
}

.element-bg {
  background-color: #7B1FA2;
  color: #ffffff;
}

.element-border {
  border: 2px solid #7B1FA2;
}

About #7B1FA2

#7B1FA2 is a dark color with high saturation, defined by the hex code #7B1FA2. Its exact color model values are rgb(123, 31, 162) in RGB and hsl(282, 68%, 38%) in HSL (hue 282°, saturation 68%, lightness 38%). On a white background the contrast ratio is 8.20:1 — AAA pass for normal text, and on black it is 2.56:1 — Fail. Use #7B1FA2 for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.

Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.

Open the Color Picker →

Frequently Asked Questions

What is the RGB value of #7B1FA2?
The RGB value of #7B1FA2 (#7B1FA2) is rgb(123, 31, 162). Red = rgb(123, 31, 162), representing the amounts of red, green, and blue light on a 0–255 scale.
Is #7B1FA2 accessible on a white background?
The contrast ratio of #7B1FA2 on white (#FFFFFF) is 8.20:1 — AAA pass for normal text. On black (#000000) the contrast ratio is 2.56:1 — Fail. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with #7B1FA2?
Based on color theory, #7B1FA2 (hsl(282, 68%, 38%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.