#8B22A0#8B22A0

#8B22A0 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.200 H 320.2°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#8B22A0
RGBrgb(139, 34, 160)
HSLhsl(290, 65%, 38%)
HSVhsv(290, 79%, 63%)
CMYKcmyk(13.1%, 78.8%, 0%, 37.3%)
CIE-LABlab(36.31, 59.31, -45.62)
CIE-LCHlch(36.31, 74.82, 322.43°)
OKLaboklab(47.73% 0.1536 -0.128)
OKLCHoklch(47.73% 0.2 320.2)
XYZxyz(17.5639, 9.1720, 34.0961)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22A0 #37A022
analogous
#4C22A0 #8B22A0 #A02276
triadic
#8B22A0 #A08B22 #22A08B
tetradic
#8B22A0 #A04C22 #37A022 #2276A0
square
#8B22A0 #A04C22 #37A022 #2276A0
split-complementary
#8B22A0 #76A022 #22A04C
monochromatic
#330D3B #5F176E #8B22A0 #B72DD2 #C85FDD

Accessibility & contrast

On white

7.41
#8B22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8B22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B22A0
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22A0#FFFFFF#000000##FFFFFF
##8B22A01.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#2F599D
Tritanopia (blue-blind)
#8B3D61
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b22a0;
/* rgb */ color: rgb(139, 34, 160);
/* oklch */ color: oklch(47.7% 0.200 320.2);
Tailwind
colors: {
  custom: {
    50: '#b16abd',
    500: '#8b22a0',
    950: '#000000',
  },
}
SCSS
$custom: #8b22a0;
$custom-light: #b16abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22a0",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 290,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47733,
    "c": 0.19994,
    "h": 320.2
  },
  "luminance": 0.09171
}

Semantic roles & 50–950 ramp

primary
#8B22A0
secondary
#6DC25C
accent
#E8405C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8B22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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