#8A2DCD

A color in the Purple, Crimson, Magenta family

#8a2dcd is a color in the Purple, Crimson, Magenta family: RGB(138, 45, 205), HSL(275°, 64%, 49%), CMYK(33%, 78%, 0%, 20%). Closest named color: darkorchid. Contrast is 6.29:1 on white and 3.34:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#8a2dcd
RGBrgb(138 45 205)
RGB (legacy)rgb(138, 45, 205)
RGB %rgb(54% 18% 80%)
HSLhsl(275 64% 49%)
HSV / HSBhsv(275, 78%, 80%)
HWBhwb(275 18% 20%)
CMYKcmyk(33%, 78%, 0%, 20%)
CIELAB (D50)lab(39.98 58.72 -65.92)
LCHlch(39.98 88.28 311.69)
OKLaboklab(0.5182 0.1347 -0.1853)
OKLCHoklch(0.5182 0.2291 306)
Decimal9055693

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkorchid ΔE 3.2
Closest web-safe color#9933cc
Hue275°
Saturation (HSL / HSV)64% / 78%
Lightness (HSL)49%
Brightness or Value (HSV)80%
Luminance (Rec.601 / Rec.709)36% / 30%
Relative luminance (WCAG)0.1169
Red / Green / Blue138 / 45 / 205

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 80.2 / -21.7 · As background with white / black text: Lc -85.3 / 23.9

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-brand: #8a2dcd;
  --color-brand-oklch: oklch(51.82% 0.2291 306);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 45 205 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a2dcd] text-[#8a2dcd] border-[#8a2dcd]">