#8A3787#8A3787

#8A3787 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.2% C 0.151 H 329.0°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8A3787
RGBrgb(138, 55, 135)
HSLhsl(302, 43%, 38%)
HSVhsv(302, 60%, 54%)
CMYKcmyk(0%, 60.1%, 2.2%, 45.9%)
CIE-LABlab(37.64, 46.14, -28.29)
CIE-LCHlch(37.64, 54.12, 328.49°)
OKLaboklab(48.18% 0.1297 -0.0778)
OKLCHoklch(48.18% 0.151 329)
XYZxyz(16.2204, 9.8860, 23.9708)
Luminance0.0988 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3787 #378A3A
analogous
#64378A #8A3787 #8A375D
triadic
#8A3787 #878A37 #37878A
tetradic
#8A3787 #8A6437 #378A3A #375D8A
square
#8A3787 #8A6437 #378A3A #375D8A
split-complementary
#8A3787 #5D8A37 #378A64
monochromatic
#321431 #5E265C #8A3787 #B648B2 #C874C5

Accessibility & contrast

On white

7.05
#8A3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3787
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3787#FFFFFF#000000##FFFFFF
##8A37871.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305189
Deuteranopia (green-blind)
#4B5D85
Tritanopia (blue-blind)
#8F405A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3787;
/* rgb */ color: rgb(138, 55, 135);
/* oklch */ color: oklch(48.2% 0.151 329.0);
Tailwind
colors: {
  custom: {
    50: '#af73aa',
    500: '#8a3787',
    950: '#000000',
  },
}
SCSS
$custom: #8a3787;
$custom-light: #af73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3787",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 302.169,
    "s": 43.005,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48181,
    "c": 0.15121,
    "h": 329
  },
  "luminance": 0.09885
}

Semantic roles & 50–950 ramp

primary
#8A3787
secondary
#6DB06F
accent
#D35A55
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3787

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

Preview Lab → · Contrast checker → · Palette generator →

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