#8B22AD#8B22AD

#8B22AD is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.6% C 0.211 H 315.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8B22AD
RGBrgb(139, 34, 173)
HSLhsl(285, 67%, 41%)
HSVhsv(285, 80%, 68%)
CMYKcmyk(19.7%, 80.3%, 0%, 32.2%)
CIE-LABlab(37.21, 61.78, -51.98)
CIE-LCHlch(37.21, 80.73, 319.92°)
OKLaboklab(48.65% 0.1516 -0.1467)
OKLCHoklch(48.65% 0.211 315.9)
XYZxyz(18.7611, 9.6509, 40.4016)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22AD #44AD22
analogous
#4622AD #8B22AD #AD2289
triadic
#8B22AD #AD8B22 #22AD8B
tetradic
#8B22AD #AD4622 #44AD22 #2289AD
square
#8B22AD #AD4622 #44AD22 #2289AD
split-complementary
#8B22AD #89AD22 #22AD46
monochromatic
#390E47 #62187A #8B22AD #B035D7 #C468E1

Accessibility & contrast

On white

7.17
#8B22AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8B22AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B22AD
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22AD#FFFFFF#000000##FFFFFF
##8B22AD1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#1E5AAA
Tritanopia (blue-blind)
#894368
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b22ad;
/* rgb */ color: rgb(139, 34, 173);
/* oklch */ color: oklch(48.6% 0.211 315.9);
Tailwind
colors: {
  custom: {
    50: '#b16bc6',
    500: '#8b22ad',
    950: '#000000',
  },
}
SCSS
$custom: #8b22ad;
$custom-light: #b16bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22ad",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 173
  },
  "hsl": {
    "h": 285.324,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48647,
    "c": 0.21093,
    "h": 315.9
  },
  "luminance": 0.0965
}

Semantic roles & 50–950 ramp

primary
#8B22AD
secondary
#7CC764
accent
#EA3E68
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B22AD

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#8B22AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva