#8B22A9#8B22A9

#8B22A9 is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.4% C 0.208 H 317.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8B22A9
RGBrgb(139, 34, 169)
HSLhsl(287, 67%, 40%)
HSVhsv(287, 80%, 66%)
CMYKcmyk(17.8%, 79.9%, 0%, 33.7%)
CIE-LABlab(36.93, 61.01, -50.04)
CIE-LCHlch(36.93, 78.90, 320.64°)
OKLaboklab(48.36% 0.1523 -0.141)
OKLCHoklch(48.36% 0.208 317.2)
XYZxyz(18.3799, 9.4984, 38.3936)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22A9 #40A922
analogous
#4822A9 #8B22A9 #A92283
triadic
#8B22A9 #A98B22 #22A98B
tetradic
#8B22A9 #A94822 #40A922 #2283A9
square
#8B22A9 #A94822 #40A922 #2283A9
split-complementary
#8B22A9 #83A922 #22A948
monochromatic
#370D43 #611876 #8B22A9 #B232D6 #C565E0

Accessibility & contrast

On white

7.24
#8B22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8B22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B22A9
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22A9#FFFFFF#000000##FFFFFF
##8B22A91.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#255AA6
Tritanopia (blue-blind)
#894166
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b22a9;
/* rgb */ color: rgb(139, 34, 169);
/* oklch */ color: oklch(48.4% 0.208 317.2);
Tailwind
colors: {
  custom: {
    50: '#b16bc3',
    500: '#8b22a9',
    950: '#000000',
  },
}
SCSS
$custom: #8b22a9;
$custom-light: #b16bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22a9",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 286.667,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4836,
    "c": 0.20753,
    "h": 317.2
  },
  "luminance": 0.09498
}

Semantic roles & 50–950 ramp

primary
#8B22A9
secondary
#78C561
accent
#E93E64
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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