#8A3897#8A3897

#8A3897 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.2% C 0.165 H 322.0°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8A3897
RGBrgb(138, 56, 151)
HSLhsl(292, 46%, 41%)
HSVhsv(292, 63%, 59%)
CMYKcmyk(8.6%, 62.9%, 0%, 40.8%)
CIE-LABlab(38.67, 48.71, -36.42)
CIE-LCHlch(38.67, 60.82, 323.21°)
OKLaboklab(49.21% 0.1296 -0.1013)
OKLCHoklch(49.21% 0.165 322)
XYZxyz(17.4807, 10.4669, 30.3717)
Luminance0.1047 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3897 #459738
analogous
#5A3897 #8A3897 #973875
triadic
#8A3897 #978A38 #38978A
tetradic
#8A3897 #975A38 #459738 #387597
square
#8A3897 #975A38 #459738 #387597
split-complementary
#8A3897 #759738 #38975A
monochromatic
#38173E #61276A #8A3897 #AE4FBE #C37BCE

Accessibility & contrast

On white

6.79
#8A3897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8A3897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3897
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3897#FFFFFF#000000##FFFFFF
##8A38971.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#435E95
Tritanopia (blue-blind)
#8C4762
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a3897;
/* rgb */ color: rgb(138, 56, 151);
/* oklch */ color: oklch(49.2% 0.165 322.0);
Tailwind
colors: {
  custom: {
    50: '#af74b6',
    500: '#8a3897',
    950: '#000000',
  },
}
SCSS
$custom: #8a3897;
$custom-light: #af74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3897",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 291.789,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4921,
    "c": 0.1645,
    "h": 322
  },
  "luminance": 0.10466
}

Semantic roles & 50–950 ramp

primary
#8A3897
secondary
#7DB773
accent
#D65264
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3897

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

Preview Lab → · Contrast checker → · Palette generator →

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