darkmagenta

#8B008B · CSS color name

darkmagenta is the CSS color name for #8b008b: RGB(139, 0, 139), HSL(300°, 100%, 27%), CMYK(0%, 100%, 0%, 45%). Contrast is 8.5:1 on white and 2.47:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8b008b
CSS color namedarkmagenta
RGBrgb(139 0 139)
RGB (legacy)rgb(139, 0, 139)
RGB %rgb(55% 0% 55%)
HSLhsl(300 100% 27%)
HSV / HSBhsv(300, 100%, 55%)
HWBhwb(300 0% 45%)
CMYKcmyk(0%, 100%, 0%, 45%)
CIELAB (D50)lab(32.5 59.56 -38.52)
LCHlch(32.5 70.94 327.11)
OKLaboklab(0.4468 0.1748 -0.1077)
OKLCHoklch(0.4468 0.2053 328.36)
Decimal9109643

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkmagenta ΔE 0
Closest web-safe color#990099
Hue300°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)27%
Brightness or Value (HSV)55%
Luminance (Rec.601 / Rec.709)23% / 16%
Relative luminance (WCAG)0.0735
Red / Green / Blue139 / 0 / 139

WCAG 2.2 Contrast Ratio

On White (#ffffff)
8.50:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.47:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 87 / -15.1 · As background with white / black text: Lc -91.7 / 17

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-darkmagenta: #8b008b;
  --color-darkmagenta-oklch: oklch(44.68% 0.2053 328.36);
}
.text { color: var(--color-darkmagenta); }
.background { background-color: var(--color-darkmagenta); }
.border { border: 1px solid rgb(139 0 139 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8b008b] text-[#8b008b] border-[#8b008b]">