What is hex #51007E color?
In professional design frameworks, this hue is considered a highly vibrant and energetic tone. It is perfect for drawing attention to critical elements like call-to-action buttons, highlights, or modern branding.
From a technical standpoint, this color is composed of 32% red, 0% green and 49% blue, resulting in rgb(81, 0, 126) and hsl(279, 100%, 25%).
For print media and manufacturing layout, the CMYK equivalent is (36%, 100%, 0%, 51%).
In the HSV/HSB scale, #51007E features a hue of 279°, 100% saturation, and 49% brightness.
Hex #51007E Color Codes & Conversions
| Closest Named Color | Indigo (#4B0082) |
| Hex Code | #51007E |
| Hex8 (RGBA Hex) | #51007EFF |
| RGB (CSS) | rgb(81, 0, 126) |
| RGBA (CSS) | rgba(81, 0, 126, 1) |
| HSL (CSS) | hsl(279, 100%, 25%) |
| HSLA (CSS) | hsla(279, 100%, 25%, 1) |
| HSV / HSB | (279°, 100%, 49%) |
| CMYK Values | (36%, 100%, 0%, 51%) |
| OKLCH (Modern CSS) | oklch(34.4% 0.177 306.6) |
| CIE-LAB (D65) | 21.04, 51.50, -49.80 |
| CIE XYZ | 7.16, 3.26, 19.99 |
| Decimal / Binary |
5308542
01010001 00000000 01111110 |
Closest Standards & Equivalents
| Closest Web Safe | #660066 |
| Inverse Color | #AEFF81 |
| Complementary Color | #2D7E00 |
| Closest Pantone® | Pantone 2607 C |
| Closest RAL | RAL 5002 [Ultramarine blue] |
#51007E Grayscale Equivalents
| Average | #454545 |
| Lightness (Desaturation) | #3F3F3F |
| Weighted (BT601) | #272727 |
| Luma (BT709) | #1A1A1A |
WCAG 2.1 Color Contrast & Accessibility
Check how #51007E complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.
White Text on #51007E
Sample preview of readable typography on top of #51007E.
Black Text on #51007E
Sample preview of readable typography on top of #51007E.
HTML / CSS Live Previews & Snippets for #51007E
Preview #51007E in real UI elements and copy ready-to-use CSS rules.
background-color: #51007E;
color: #51007E;
border: 2px solid #51007E;
:root {
--color-primary: #51007E;
--color-primary-rgb: 81, 0, 126;
--color-complementary: #2D7E00;
}
.btn-accent {
background-color: #51007E;
color: #ffffff;
}
Hex #51007E Color Palettes
Complementary Palette
The complementary color of #51007E is #2D7E00. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.
Analogous Palette
The analogous color scheme of #51007E pairs with #12007E and #7E006C, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #51007E pairs with #007E12 and #6C7E00, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #51007E uses #007E51 and #7E5100, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #51007E combines #7E5100, #2D7E00 and #002D7E around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #51007E pairs with #7E1200, #2D7E00 and #006C7E spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #51007E
Tints
Tints are created by mixing #51007E with white, producing lighter variations.
Tones
Tones are created by mixing #51007E with gray, softening saturation.
Shades
Shades result from mixing #51007E with black, creating deeper variations.
Hex #51007E in Programming & CSS Frameworks
Copy the exact syntax for #51007E in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #51007E |
| Tailwind CSS | bg-[#51007E] text-[#51007E] |
| Java (AWT) | new Color(81,0,126); |
| Python | Color("#51007E") |
| .NET (C#) | Color.FromArgb(255, 81,0,126); |
| Swift / iOS | UIColor(red: 0.32, green: 0, blue: 0.49, alpha: 1) |
| Kotlin / Android | Color.rgb(81, 0, 126) |