#501FB2 color

#501FB2 is rgb(80, 31, 178) in RGB and hsl(260, 70%, 41%) in HSL. The closest CSS named color is mediumblue (#0000cd, ΔE 6.4). Use white text on it (contrast 9.63:1).

#501FB2violet
HEX#501FB2
RGBrgb(80, 31, 178)
RGB percentrgb(31.4%, 12.2%, 69.8%)
HSLhsl(260, 70%, 41%)
HSV / HSBhsv(260, 83%, 70%)
CMYKcmyk(55%, 83%, 0%, 30%)
CIELAB (D65)lab(29.2 55 -68.5)

Edit in the color converter → · Check contrast → · Shades →

About #501FB2

#501FB2 is a medium-dark, saturated violet with a hue angle of 260°. It belongs to the purple family and reads as a cool color. In the RGB model blue is the strongest channel at 178 (70%) and green the weakest at 31 (12%). Colors like this are typically used for headers, navigation bars and strong brand areas.

Color conversions

HEX#501FB2
RGBrgb(80, 31, 178)
RGB percentrgb(31.4%, 12.2%, 69.8%)
HSLhsl(260, 70%, 41%)
HSV / HSBhsv(260, 83%, 70%)
CMYKcmyk(55%, 83%, 0%, 30%)
CIELAB (D65)lab(29.2 55 -68.5)
Decimal5250994
Binary01010000 00011111 10110010

HEX 50 1F B2 → 80, 31, 178 (each pair is a base-16 number: 5×16 + 0 = 80)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #501FB2

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #501FB2RatioAA normalAA largeAAA normalAAA large
White text9.63:1PassPassPassPass
Black text2.18:1FailFailFailFail
White text on #501FB2
Black text on #501FB2
#501FB2 text on white
#501FB2 text on black

Relative luminance is 0.0590 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#0048b6

Deuteranopia
#0041af

Tritanopia
#274c6a

Achromatopsia
#454545

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 12.1). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
mediumblue#0000cd6.4
rebeccapurple#6633997
indigo#4b00828.2
blue#0000ff8.8

CSS

.element {
  color: #501fb2;
  background-color: rgb(80, 31, 178);
  border: 1px solid hsl(260, 70%, 41%);
  box-shadow: 0 2px 8px rgb(80 31 178 / 50%);
}
:root { --brand: #501fb2; }

Frequently asked questions

What color is #501FB2?
A medium-dark saturated violet in the purple family. Closest CSS name: mediumblue.
What is #501FB2 in RGB?
rgb(80, 31, 178): red 80, green 31, blue 178.
What is the complementary color of #501FB2?
#81B21F, found by rotating the hue 180°.