#8A2B97#8A2B97

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

Color values

HEX#8A2B97
RGBrgb(138, 43, 151)
HSLhsl(293, 56%, 38%)
HSVhsv(293, 72%, 59%)
CMYKcmyk(8.6%, 71.5%, 0%, 40.8%)
CIE-LABlab(36.68, 54.26, -39.59)
CIE-LCHlch(36.68, 67.16, 323.89°)
OKLaboklab(47.78% 0.1446 -0.1105)
OKLCHoklch(47.78% 0.182 322.6)
XYZxyz(16.9305, 9.3664, 30.1883)
Luminance0.0936 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B97 #38972B
analogous
#542B97 #8A2B97 #972B6E
triadic
#8A2B97 #978A2B #2B978A
tetradic
#8A2B97 #97542B #38972B #2B6E97
square
#8A2B97 #97542B #38972B #2B6E97
split-complementary
#8A2B97 #6E972B #2B9754
monochromatic
#331038 #5E1D67 #8A2B97 #B539C7 #C768D4

Accessibility & contrast

On white

7.31
#8A2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B97
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B97#FFFFFF#000000##FFFFFF
##8A2B971.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024F9A
Deuteranopia (green-blind)
#3B5A94
Tritanopia (blue-blind)
#8C3E5E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2b97;
/* rgb */ color: rgb(138, 43, 151);
/* oklch */ color: oklch(47.8% 0.182 322.6);
Tailwind
colors: {
  custom: {
    50: '#af6db6',
    500: '#8a2b97',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b97;
$custom-light: #af6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b97",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 292.778,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47778,
    "c": 0.182,
    "h": 322.6
  },
  "luminance": 0.09365
}

Semantic roles & 50–950 ramp

primary
#8A2B97
secondary
#6EBB63
accent
#DF495B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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