Skip to content
PantoneTools
pink
X11 named colors

Magenta4

magenta4 · #8B008B

HEX

#8B008B

RGB

rgb(139, 0, 139)

CMYK

cmyk(0%, 100%, 0%, 45%)

HSL

hsl(300, 100%, 27%)

LAB

lab(32.6, 62.5, -38.7)

What is Magenta4?

Magenta4 is the magenta4 reference in the X11 named colors. Its sRGB value is #8B008B (rgb 139, 0, 139). It sits in the pink family. Historical X Window System color names — the numbered 1-4 lightness variants of the classic xorg-server rgb.txt palette. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Magenta4 as a background.

Black text on this color

Sample text · 2.47 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 8.50 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Magenta4

An 11-step tonal scale derived from Magenta4 (#8B008B). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #F6EBF6

50

#F6EBF6

#F6EBF6

Copied #ECD6EC

100

#ECD6EC

#ECD6EC

Copied #DAADDA

200

#DAADDA

#DAADDA

Copied #C580C5

300

#C580C5

#C580C5

Copied #A840A8

400

#A840A8

#A840A8

Copied #8B008B

500

#8B008B

#8B008B

Copied #760076

600

#760076

#760076

Copied #5A005A

700

#5A005A

#5A005A

Copied #3F003F

800

#3F003F

#3F003F

Copied #230023

900

#230023

#230023

Copied #110011

950

#110011

#110011

Lighter tints (mixed with white)

Copied #A46CA4

15%

#A46CA4

Copied #B895B8

30%

#B895B8

Copied #CAB3CA

45%

#CAB3CA

Copied #DACBDA

60%

#DACBDA

Copied #E9E1E9

75%

#E9E1E9

Darker shades (mixed with black)

Copied #810081

15%

#810081

Copied #760076

30%

#760076

Copied #690069

45%

#690069

Copied #5A005A

60%

#5A005A

Copied #480048

75%

#480048

Color harmonies for Magenta4

Classic color-theory harmonies derived from rotating the hue of Magenta4. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #8B008B

#8B008B

#8B008B

Copied #008A00

#008A00

#008A00

Triadic

Three colors 120° apart

Copied #8B008B

#8B008B

#8B008B

Copied #8A8A00

#8A8A00

#8A8A00

Copied #008A8A

#008A8A

#008A8A

Analogous

Two neighbors ±30° on the wheel

Copied #45008A

#45008A

#45008A

Copied #8B008B

#8B008B

#8B008B

Copied #8A0045

#8A0045

#8A0045

Split-complementary

Base + two colors flanking its complement

Copied #8B008B

#8B008B

#8B008B

Copied #458A00

#458A00

#458A00

Copied #008A45

#008A45

#008A45

Tetradic

Two complementary pairs

Copied #8B008B

#8B008B

#8B008B

Copied #8A0000

#8A0000

#8A0000

Copied #008A00

#008A00

#008A00

Copied #008A8A

#008A8A

#008A8A

Square

Four colors evenly spaced 90° apart

Copied #8B008B

#8B008B

#8B008B

Copied #8A4500

#8A4500

#8A4500

Copied #008A00

#008A00

#008A00

Copied #00458A

#00458A

#00458A

Magenta4 in every color space

Full conversion of Magenta4 across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#8B008B

RGB

rgb(139, 0, 139)

CMYK

cmyk(0%, 100%, 0%, 45%)

HSL

hsl(300, 100%, 27%)

HSV

hsv(300, 100%, 55%)

HWB

hwb(300 0% 45%)

CIE Lab

lab(32.6 62.5 -38.7)

OKLCH

oklch(44.7% 0.205 328.4)

XYZ (D65)

xyz(15.31, 7.35, 25.03)

Copy-ready code for Magenta4

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #8B008B;
background-color: #8B008B;

CSS variable

:root {
  --color-magenta4: #8B008B;
}

Tailwind config

// tailwind.config.js
colors: {
  'magenta4': '#8B008B',
}

Sass

$color-magenta4: #8B008B;

Swift UIColor

UIColor(red: 0.545, green: 0.000, blue: 0.545, alpha: 1.0)

Android XML

<color name="magenta4">#8B008B</color>

Closest match in every color system

The nearest Magenta4 equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in X11 named colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #A03472

RAL 4006

#A03472

Traffic purple

Copied #6C4675

RAL 4005

#6C4675

Blue lilac

Copied #434B4D

RAL 7011

#434B4D

Iron grey

Copied #924E7D

RAL 4008

#924E7D

Signal violet

Copied #343E40

RAL 6012

#343E40

Black green

Copied #6D3F5B

RAL 4001

#6D3F5B

Red lilac

FAQ about Magenta4

What is the HEX code for Magenta4?

Magenta4 (magenta4) has the HEX code #8B008B. In RGB it is rgb(139, 0, 139), and in CMYK it is cmyk(0%, 100%, 0%, 45%).

What is the OKLCH value of Magenta4?

Magenta4 converts to oklch(0.447 0.205 328.4). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Magenta4 accessible for body text?

Used as a background, Magenta4 has a contrast ratio of 2.47:1 with black text and 8.50:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Magenta4?

The closest Pantone reference to Magenta4 by ΔE2000 perceptual distance is Pantone 527 C (#6E2585). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Magenta4?

The closest RAL Classic reference to Magenta4 by ΔE2000 distance is RAL 4006 (Traffic purple, #A03472). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Magenta4?

The complementary color (180° opposite on the HSL color wheel) of Magenta4 is #008A00. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

X11 named colors (xorg rgb.txt)

The historical X11 color name list shipped in the xorg-server rgb.txt file. Roughly 550 entries covering classic computing color names like 'PapayaWhip', 'MediumAquamarine', and 'DarkSlateGray'. Many CSS named colors originate here. Use as a reference for legacy and creative color names. Most modern CSS implementations accept these names directly.

Source type
derived
Confidence
high
License
MIT/X11 license (X Consortium)
Last reviewed
2026-05-24

Workflow tags

x11
named-color
legacy
pink

X11 colors are sRGB digital values from a 1980s color system. For print, convert to a process-appropriate color and proof against substrate.

X11 named colors · Magenta4 — #8B008B | PantoneTools