Skip to content
PantoneTools
purple
X11 named colors

Mediumpurple4

mediumpurple4 · #5D478B

HEX

#5D478B

RGB

rgb(93, 71, 139)

CMYK

cmyk(33%, 49%, 0%, 45%)

HSL

hsl(259, 32%, 41%)

LAB

lab(35.4, 25.2, -34.7)

What is Mediumpurple4?

Mediumpurple4 is the mediumpurple4 reference in the X11 named colors. Its sRGB value is #5D478B (rgb 93, 71, 139). It sits in the purple 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 Mediumpurple4 as a background.

Black text on this color

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

White text on this color

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

Shades, tints & tonal scale of Mediumpurple4

An 11-step tonal scale derived from Mediumpurple4 (#5D478B). 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 #F2F0F6

50

#F2F0F6

#F2F0F6

Copied #E5E2EC

100

#E5E2EC

#E5E2EC

Copied #CBC4DA

200

#CBC4DA

#CBC4DA

Copied #AEA3C5

300

#AEA3C5

#AEA3C5

Copied #8675A8

400

#8675A8

#8675A8

Copied #5D478B

500

#5D478B

#5D478B

Copied #4F3C76

600

#4F3C76

#4F3C76

Copied #3C2E5A

700

#3C2E5A

#3C2E5A

Copied #2A203F

800

#2A203F

#2A203F

Copied #171223

900

#171223

#171223

Copied #0B0911

950

#0B0911

#0B0911

Lighter tints (mixed with white)

Copied #877DA4

15%

#877DA4

Copied #A59EB8

30%

#A59EB8

Copied #BDB9CA

45%

#BDB9CA

Copied #D2CFDA

60%

#D2CFDA

Copied #E4E3E9

75%

#E4E3E9

Darker shades (mixed with black)

Copied #564181

15%

#564181

Copied #4E3B76

30%

#4E3B76

Copied #453469

45%

#453469

Copied #3B2C5A

60%

#3B2C5A

Copied #2E2248

75%

#2E2248

Color harmonies for Mediumpurple4

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

Complementary

180° opposite — strongest contrast

Copied #5D478B

#5D478B

#5D478B

Copied #758A47

#758A47

#758A47

Triadic

Three colors 120° apart

Copied #5D478B

#5D478B

#5D478B

Copied #8A5C47

#8A5C47

#8A5C47

Copied #478A5C

#478A5C

#478A5C

Analogous

Two neighbors ±30° on the wheel

Copied #47538A

#47538A

#47538A

Copied #5D478B

#5D478B

#5D478B

Copied #7E478A

#7E478A

#7E478A

Split-complementary

Base + two colors flanking its complement

Copied #5D478B

#5D478B

#5D478B

Copied #8A7E47

#8A7E47

#8A7E47

Copied #538A47

#538A47

#538A47

Tetradic

Two complementary pairs

Copied #5D478B

#5D478B

#5D478B

Copied #8A4775

#8A4775

#8A4775

Copied #758A47

#758A47

#758A47

Copied #478A5C

#478A5C

#478A5C

Square

Four colors evenly spaced 90° apart

Copied #5D478B

#5D478B

#5D478B

Copied #8A4753

#8A4753

#8A4753

Copied #758A47

#758A47

#758A47

Copied #478A7E

#478A7E

#478A7E

Mediumpurple4 in every color space

Full conversion of Mediumpurple4 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

#5D478B

RGB

rgb(93, 71, 139)

CMYK

cmyk(33%, 49%, 0%, 45%)

HSL

hsl(259, 32%, 41%)

HSV

hsv(259, 49%, 55%)

HWB

hwb(259 28% 45%)

CIE Lab

lab(35.4 25.2 -34.7)

OKLCH

oklch(45.3% 0.109 296.7)

XYZ (D65)

xyz(11.43, 8.70, 25.50)

Copy-ready code for Mediumpurple4

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: #5D478B;
background-color: #5D478B;

CSS variable

:root {
  --color-mediumpurple4: #5D478B;
}

Tailwind config

// tailwind.config.js
colors: {
  'mediumpurple4': '#5D478B',
}

Sass

$color-mediumpurple4: #5D478B;

Swift UIColor

UIColor(red: 0.365, green: 0.278, blue: 0.545, alpha: 1.0)

Android XML

<color name="mediumpurple4">#5D478B</color>

Closest match in every color system

The nearest Mediumpurple4 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 #6C4675

RAL 4005

#6C4675

Blue lilac

Copied #354D73

RAL 5000

#354D73

Violet blue

Copied #1E2460

RAL 5005

#1E2460

Signal blue

Copied #3E5F8A

RAL 5007

#3E5F8A

Brilliant blue

Copied #252850

RAL 5022

#252850

Night blue

Copied #6D3F5B

RAL 4001

#6D3F5B

Red lilac

FAQ about Mediumpurple4

What is the HEX code for Mediumpurple4?

Mediumpurple4 (mediumpurple4) has the HEX code #5D478B. In RGB it is rgb(93, 71, 139), and in CMYK it is cmyk(33%, 49%, 0%, 45%).

What is the OKLCH value of Mediumpurple4?

Mediumpurple4 converts to oklch(0.453 0.109 296.7). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Mediumpurple4 accessible for body text?

Used as a background, Mediumpurple4 has a contrast ratio of 2.74:1 with black text and 7.67: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 Mediumpurple4?

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

What is the closest RAL color to Mediumpurple4?

The closest RAL Classic reference to Mediumpurple4 by ΔE2000 distance is RAL 4005 (Blue lilac, #6C4675). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Mediumpurple4?

The complementary color (180° opposite on the HSL color wheel) of Mediumpurple4 is #758A47. 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
purple

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 · Mediumpurple4 — #5D478B | PantoneTools