Xerobit

Magenta Hex Code and Color Values

Magenta (CSS keyword magenta) is #FF00FF: rgb(255, 0, 255), hsl(300, 100%, 50%). Same value as fuchsia.

Magenta: #FF00FF

  • Hex
    #FF00FF
  • RGB
    rgb(255, 0, 255)
  • HSL
    hsl(300, 100%, 50%)
  • OKLCH
    oklch(70.2% 0.3225 328.4)
  • CMYK
    0%, 100%, 0%, 0%
  • CSS name
    magenta

Where the name magenta comes from

magenta and fuchsia are two keywords for the same color: the CSS Color Module Level 4 table gives both the value #FF00FF (rgb 255 0 255). Keywords are "ASCII case-insensitive", so MAGENTA also works.

One of the sixteen HTML 4.01 names (section 6.5), value #FF00FF; CSS Color 4 says these came from the VGA palette.

Short form: #F0F.

Shades and tints of Magenta

  • 10% white #FF1AFF magenta; 10% black #E600E6
  • 20% white #FF33FF magenta; 20% black #CC00CC
  • 30% white #FF4DFF ; 30% black #B300B3
  • 40% white #FF66FF ; 40% black #990099 darkmagenta
  • 50% white #FF80FF violet; 50% black #800080 purple

Contrast of #FF00FF

Against white 3.14:1 (large text only), against black 6.70:1 (passes AA); black text reads better on Magenta. In HSV it is hsv(300, 100%, 100%).

Lightness rank 82 of 139; best partner black, 6.70:1.

Closest names to Magenta

Magenta has OKLCH hue 328 degrees.

NameHexOKLab distanceThan Magenta
orchid#DA70D60.141lighter
mediumorchid#BA55D30.148darker
violet#EE82EE0.149lighter
deeppink#FF14930.163darker
hotpink#FF69B40.165lighter
darkorchid#9932CC0.203darker
mediumvioletred#C715850.205darker

Color harmony for Magenta

Magenta with color vision deficiency

  • Protanopia: #007FFF, like mediumslateblue (#7B68EE)
  • Deuteranopia: #689BFA
  • Tritanopia: #FF4A97

FAQ

What is the hex code for Magenta?

#FF00FF, or the keyword magenta or fuchsia.

Which named color is closest to Magenta?

orchid (#DA70D6), then mediumorchid and violet.