Magenta to RGB — Color Code

RGB

rgb(255, 0, 255)

Format Value
HEX #ff00ff
RGB rgb(255, 0, 255)
HSL hsl(300, 100%, 50%)
CMYK cmyk(0%, 100%, 0%, 0%)

Related calculators

What is the RGB code for magenta?

The CSS color magenta in RGB format is rgb(255, 0, 255). Use this value directly in CSS, SVG, and most design tools.

How do I use magenta in CSS?

To apply magenta in CSS:

  • Text color: color: rgb(255, 0, 255);
  • Background: background-color: rgb(255, 0, 255);
  • Border: border-color: rgb(255, 0, 255);

What are all the color format values for magenta?

FormatValue
HEX#ff00ff
RGBrgb(255, 0, 255)
HSLhsl(300, 100%, 50%)
CMYKcmyk(0%, 100%, 0%, 0%)

How do I convert magenta to RGB?

Select magenta from the color name list in our color converter. The RGB value — rgb(255, 0, 255) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does magenta belong to?

magenta belongs to the pink color family. It is a medium, vivid color with HSL values: hue 300°, saturation 100%, lightness 50%.

How do I create lighter and darker shades of magenta?

Lighter variant (lightness 65%): #ff4dff. Darker variant (lightness 35%): #b300b3. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is RGB used for?

RGB defines colors using three values from 0 to 255 — red, green and blue intensity. It is the native format for screens, monitors and web browsers.