#8A2C96#8A2C96

#8A2C96 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.180 H 323.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8A2C96
RGBrgb(138, 44, 150)
HSLhsl(293, 55%, 38%)
HSVhsv(293, 71%, 59%)
CMYKcmyk(8%, 70.7%, 0%, 41.2%)
CIE-LABlab(36.76, 53.68, -38.85)
CIE-LCHlch(36.76, 66.27, 324.10°)
OKLaboklab(47.81% 0.1436 -0.1083)
OKLCHoklch(47.81% 0.18 323)
XYZxyz(16.8864, 9.4076, 29.7747)
Luminance0.0941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C96 #38962C
analogous
#552C96 #8A2C96 #962C6D
triadic
#8A2C96 #968A2C #2C968A
tetradic
#8A2C96 #96552C #38962C #2C6D96
square
#8A2C96 #96552C #38962C #2C6D96
split-complementary
#8A2C96 #6D962C #2C9655
monochromatic
#331037 #5E1E67 #8A2C96 #B53AC5 #C769D3

Accessibility & contrast

On white

7.29
#8A2C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A2C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C96
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C96#FFFFFF#000000##FFFFFF
##8A2C961.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094F99
Deuteranopia (green-blind)
#3C5A93
Tritanopia (blue-blind)
#8C3E5E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2c96;
/* rgb */ color: rgb(138, 44, 150);
/* oklch */ color: oklch(47.8% 0.180 323.0);
Tailwind
colors: {
  custom: {
    50: '#af6eb5',
    500: '#8a2c96',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c96;
$custom-light: #af6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c96",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 293.208,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47814,
    "c": 0.17989,
    "h": 323
  },
  "luminance": 0.09407
}

Semantic roles & 50–950 ramp

primary
#8A2C96
secondary
#6EBA64
accent
#DE4A5B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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