#8A3987#8A3987

#8A3987 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.4% C 0.148 H 329.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8A3987
RGBrgb(138, 57, 135)
HSLhsl(302, 42%, 38%)
HSVhsv(302, 59%, 54%)
CMYKcmyk(0%, 58.7%, 2.2%, 45.9%)
CIE-LABlab(37.99, 45.20, -27.74)
CIE-LCHlch(37.99, 53.03, 328.46°)
OKLaboklab(48.44% 0.127 -0.0762)
OKLCHoklch(48.44% 0.148 329)
XYZxyz(16.3174, 10.0798, 24.0031)
Luminance0.1008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3987 #398A3C
analogous
#64398A #8A3987 #8A395E
triadic
#8A3987 #878A39 #39878A
tetradic
#8A3987 #8A6439 #398A3C #395E8A
square
#8A3987 #8A6439 #398A3C #395E8A
split-complementary
#8A3987 #5E8A39 #398A64
monochromatic
#331532 #5F275D #8A3987 #B54BB1 #C777C4

Accessibility & contrast

On white

6.96
#8A3987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A3987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3987
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3987#FFFFFF#000000##FFFFFF
##8A39871.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325289
Deuteranopia (green-blind)
#4D5D85
Tritanopia (blue-blind)
#8F425A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3987;
/* rgb */ color: rgb(138, 57, 135);
/* oklch */ color: oklch(48.4% 0.148 329.0);
Tailwind
colors: {
  custom: {
    50: '#ae74aa',
    500: '#8a3987',
    950: '#000000',
  },
}
SCSS
$custom: #8a3987;
$custom-light: #ae74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3987",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 302.222,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.48435,
    "c": 0.1481,
    "h": 329
  },
  "luminance": 0.10079
}

Semantic roles & 50–950 ramp

primary
#8A3987
secondary
#6FB071
accent
#D15B56
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3987

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

Preview Lab → · Contrast checker → · Palette generator →

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