⤺ color picker

#4c0098 Color Hex

Hex color #4c0098, RGB(76, 0, 152) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.

The hex color code #4c0098 is a shade of blue-magenta. In a RGB color space it is composed of 29.8% red, 0% green and 59.61% blue. In HSL notation it has 270° hue, 100% saturation and 29.8% lightness. The process color (CMYK) is combination of 50% cyan, 100% magenta, 0% yellow and 40.39% key (black). The closest short hexadecimal code of #4c0098 is #409.

Color information

  • #4c0098 is a shade of blue-magenta.
  • Blue is dominant among the three primary colors (RGB).
  • CMYK color proportions:
    • Cyan: 50%
    • Magenta: 100%
    • Yellow: 0%
    • Key color - black: 40.39%
  • In the HSL model coordinates are:
    • Hue: 270° degrees
    • Saturation: 100%
    • Lightness: 29.8%
  • The values in the RGB color space are:
    • Red: 76 (29.8%)
    • Green: 0 (0%)
    • Blue: 152 (59.61%)


C: 50%, M: 100%, Y: 0%, K: 40.39%
R: 76, G: 0, B: 152
H: 270°, S: 100%, L: 29.8%

Color harmonies

#4c0098 color HTML and CSS codes

Example CSS code:

.setFontColor { color: #4c0098; }
.setBackgroundColor { background-color: #4c0098; }

#4c0098 text/font color

How to set font color?

<p style="color:#4c0098">Font color is #4c0098.</p>

Font color is #4c0098.

Red was ruby, green was fluorescent, yellow was simply incandescent. Color was life. Color was everything. Color, you see, was the universal sign of magic.
- Tahereh Mafi, Furthermore

#4c0098 background color

How to set background color?

<div style="background-color:#4c0098">Background color is #4c0098.</div>

Background color is #4c0098.

When you photograph people in color, you photograph their clothes. But when you photograph people in Black and white, you photograph their souls!
- Ted Grant