CSS named color

Magenta

#FF00FF
HEX#ff00ff
RGBrgb(255, 0, 255)
HSLhsl(300, 100%, 50%)
OKLCHoklch(70.17% 0.3225 328.36)
NAMEmagenta

Palette

Complementary

180° on the color wheel

Analogous

±30° around the base hue
Left
#7F00FF
Right
#FF0080

Triadic

±120° for harmonic contrast

Shades

Lighter and darker variants
Lightest
#FFB3FF
Lighter
#FF66FF
Base
#FF00FF
Fuchsia
Darker
#990099
Darkest
#4D004C

CSS usage

By name
color: magenta;
background-color: magenta;
By HEX
color: #ff00ff;
background-color: #ff00ff;
By RGB
color: rgb(255, 0, 255);
background-color: rgb(255, 0, 255);
By HSL
color: hsl(300, 100%, 50%);
background-color: hsl(300, 100%, 50%);

WCAG contrast vs white

Aa
3.14:1
AA (large text)

WCAG contrast vs black

Aa
6.70:1
AA

Related colors

FAQ — Magenta

What is the HEX code for Magenta?

The HEX code for Magenta is #FF00FF. It's one of the 148 named CSS colors and can be used directly in CSS as color: magenta; or color: #ff00ff;

What is Magenta in RGB?

Magenta in RGB is rgb(255, 0, 255) — red 255, green 0, blue 255.

What is Magenta in HSL?

Magenta in HSL is hsl(300, 100%, 50%) — hue 300°, saturation 100%, lightness 50%.

What is the complementary color of Magenta?

The complementary color (directly opposite Magenta on the color wheel) is #00FF00. The two together produce maximum contrast.

Is white text readable on Magenta?

The WCAG contrast ratio against white (#FFFFFF) is 3.14:1, and against black (#000000) it's 6.70:1. White text is more readable. WCAG recommends at least 4.5:1 for body text.

← All colors & converter