#12072C Color Information

Hex color code: #12072C

#12072C is a dramatic purple color. In RGB it is (18, 7, 44), and in HSL it is (258°, 73%, 10%). It is widely used in graphic design.

Try:
Color NameBlack
HEX
#12072C
RGB
18, 7, 44
HSL
258°, 73%, 10%
CMYK
59%, 84%, 0%, 83%

Shades

CSS Usage
color: #12072C;
background-color: #12072C;
border-color: #12072C;
box-shadow: 0 0 10px #12072C;
border: 2px solid #12072C;
Tailwind Usage
bg-[#12072C]
text-[#12072C]
border-[#12072C]
shadow-[0_0_10px_12072C]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #12072C, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #12072C; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #12072C; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #12072C; background-color: #12072C15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #12072C20; border-left: 4px solid #12072C; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #12072C; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #12072C in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

18, 7, 44

Red: 18 / Green: 7 / Blue: 44

HSL

258°, 73%, 10%

Hue: 258° / Saturation: 73% / Lightness: 10%

CMYK

59%, 84%, 0%, 83%

Cyan: 59% / Magenta: 84% / Yellow: 0% / Key: 83%

What color is #12072C?

#12072C is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #12072C to RGB:

rgb(18, 7, 44)HEX to RGB Converter →

HEX to HSL

Convert #12072C to HSL:

hsl(258, 73%, 10%)RGB to HSL Converter →

HEX to CMYK

Convert #12072C to CMYK:

cmyk(59%, 84%, 0%, 83%)Color Converter →

Color Meaning and Usage

A rich purple tone, #12072C has RGB (18, 7, 44) and HSL (258°, 73%, 10%). Known for evoking sophistication and elegance, this very dark shade is frequently seen in web interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #12072C is #212C07, creating high-contrast pairings. For softer combinations, try analogous colors like #070E2C.

Use #12072C in CSS: color: #12072C or background-color: #12072C. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #12072C

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 1.09:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #12072C?

#12072C is a rich purple color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #12072C?

#12072C in RGB is (18, 7, 44) - 18 red, 7 green, and 44 blue.

How to use #12072C in CSS?

Use #12072C directly in your CSS properties like color or background-color.

What colors go well with #12072C?

#212C07 (complementary), #070E2C (analogous), and #000000 (lighter shade) work well with #12072C.