Black Friday 2026: design deals we check every day. See the deals →

#51127A Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

 
#51127a
Hex color #51127a graphic
This deep, dark violet feels moody and sophisticated. Because #51127a is quite saturated, it works best as a bold accent or a foundation for darker UI themes rather than a background for long-form text. It pairs well with muted metallics like brass or cool grays, which help ground the intensity. The hex code for this powerful purple is #51127a.

Color Conversions

Hex color #51127a converted to various formats including hex, rgb, hsl, and more.

  • Hex#51127a
  • RGBrgb(81, 18, 122)
  • RGB Percentagesrgb(32%, 7%, 48%)
  • CMYK34%, 85%, 0%, 52%
  • HSLhsl(276, 74%, 27%)
  • HSVhsv(276, 85%, 48%)
  • OKLCHoklch(35.1% 0.161 306.9)
  • LCH22, 64, 315
  • LAB22, 46, -45
  • LUV22, 13, -56
  • XYZ7, 4, 19
  • Closest Tailwind Colorpurple-900

Color Variations

Variations of this color including shaded, tints, and complementary colors.

Brighten

Tints of the color as they brighten toward white.

#51127a
#612f88
#714796
#815da3
#9273b1
#a48abe
#b5a1cb
#c7b8d8
#dacfe5
#ece7f2

Darken

Shades of the color as they darken toward black.

#51127a
#450e69
#3a0a59
#2f0749
#24043a
#1a022b
#10011d
#070110
#020005
#000001

Desaturate

Desaturated versions of this color.

#51127a
#56237c
#5a307d
#5f3b7e
#63467f
#685080
#6d5a80
#726381
#766d81
#7b7680

Hue

Various hues of this color.

#7a2e12
#7a1221
#7a124c
#7a1278
#51127a
#26127a
#122a7a
#12557a
#127a74

Analogous

Analogous color palette of this color, meaning colors that are next to each other on the color wheel.

#51127a
#27127a
#3c127a

Monochromatic

Monochromatic colors for this color, monochromatic colors are all of the same hue.

#51127a
#6d18a4
#891fcf
#a625f9
#190525
#350c4f

Complementary

Complementary colors for this color, complementary colors are opposites on the color wheel.

#51127a
#3b7a12

Split Complement

Split-complementary colors which use adjacent colors of this color’s complementary color.

#51127a
#7a1226
#127a27

Triad

Triad colors which pull themselves in a triangle across the color wheel.

#51127a
#7a5112
#127a51

Tetrad

Tetrad colors which pull themselves in a square shape across the color wheel.

#51127a
#7a1d12
#3b7a12
#126f7a

Contrast Checker

Contrast test results for the color #51127a on black and white backgrounds.
Open in contrast checker →

White Background

Passes AAA
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Black Background

Fails WCAG
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Color Blindness Simulation

See how #51127a appears to people with color vision deficiency (CVD).

Normal Vision
#51127a
Protanopia
#1d1d7a
Red-blind (~1% of males)
Deuteranopia
#272778
Green-blind (~1% of males)
Tritanopia
#441f1f
Blue-blind (very rare)
Achromatopsia
#272727
Total color blindness

Questions about #51127a

What is #51127a in RGB, HSL and CMYK?
In RGB, #51127a is rgb(81, 18, 122), in HSL hsl(276, 74%, 27%) and in CMYK 34%, 85%, 0%, 52%. Browse more shades of purple with names and hex codes.
How should I use #51127a in a design project?
Use #51127a as an accent color for buttons or navigation bars rather than for long blocks of text. Because this violet is highly saturated, it serves as an excellent anchor for darker, moody UI themes when paired with cool grays.
Does #51127a work well with other colors?
This deep violet pairs beautifully with muted metallics like brass, which help balance its high intensity. It also looks professional alongside soft neutral tones, providing a grounded contrast that prevents the purple from overwhelming the overall layout of your design.
Is #51127a readable on white or black?
#51127a has a 12.22:1 contrast ratio on white and 1.71:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.