#8A2C97#8A2C97

#8A2C97 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.181 H 322.6°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8A2C97
RGBrgb(138, 44, 151)
HSLhsl(293, 55%, 38%)
HSVhsv(293, 71%, 59%)
CMYKcmyk(8.6%, 70.9%, 0%, 40.8%)
CIE-LABlab(36.82, 53.87, -39.37)
CIE-LCHlch(36.82, 66.72, 323.84°)
OKLaboklab(47.88% 0.1436 -0.1098)
OKLCHoklch(47.88% 0.181 322.6)
XYZxyz(16.9673, 9.4400, 30.2005)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C97 #39972C
analogous
#542C97 #8A2C97 #972C6E
triadic
#8A2C97 #978A2C #2C978A
tetradic
#8A2C97 #97542C #39972C #2C6E97
square
#8A2C97 #97542C #39972C #2C6E97
split-complementary
#8A2C97 #6E972C #2C9754
monochromatic
#331038 #5F1E68 #8A2C97 #B53AC6 #C76AD4

Accessibility & contrast

On white

7.27
#8A2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C97
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C97#FFFFFF#000000##FFFFFF
##8A2C971.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06509A
Deuteranopia (green-blind)
#3C5A94
Tritanopia (blue-blind)
#8C3F5E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2c97;
/* rgb */ color: rgb(138, 44, 151);
/* oklch */ color: oklch(47.9% 0.181 322.6);
Tailwind
colors: {
  custom: {
    50: '#af6eb6',
    500: '#8a2c97',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c97;
$custom-light: #af6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c97",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 292.71,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47877,
    "c": 0.18078,
    "h": 322.6
  },
  "luminance": 0.09439
}

Semantic roles & 50–950 ramp

primary
#8A2C97
secondary
#6FBA65
accent
#DE4A5C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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