#8A3786#8A3786

#8A3786 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.1% C 0.150 H 329.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8A3786
RGBrgb(138, 55, 134)
HSLhsl(303, 43%, 38%)
HSVhsv(303, 60%, 54%)
CMYKcmyk(0%, 60.1%, 2.9%, 45.9%)
CIE-LABlab(37.59, 45.96, -27.75)
CIE-LCHlch(37.59, 53.69, 328.88°)
OKLaboklab(48.13% 0.1296 -0.0762)
OKLCHoklch(48.13% 0.15 329.5)
XYZxyz(16.1503, 9.8580, 23.6018)
Luminance0.0986 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3786 #378A3B
analogous
#65378A #8A3786 #8A375C
triadic
#8A3786 #868A37 #37868A
tetradic
#8A3786 #8A6537 #378A3B #375C8A
square
#8A3786 #8A6537 #378A3B #375C8A
split-complementary
#8A3786 #5C8A37 #378A65
monochromatic
#321431 #5E265C #8A3786 #B648B0 #C874C4

Accessibility & contrast

On white

7.07
#8A3786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A3786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3786
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3786#FFFFFF#000000##FFFFFF
##8A37861.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305188
Deuteranopia (green-blind)
#4C5C84
Tritanopia (blue-blind)
#8F4059
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a3786;
/* rgb */ color: rgb(138, 55, 134);
/* oklch */ color: oklch(48.1% 0.150 329.5);
Tailwind
colors: {
  custom: {
    50: '#af73a9',
    500: '#8a3786',
    950: '#000000',
  },
}
SCSS
$custom: #8a3786;
$custom-light: #af73a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3786",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 302.892,
    "s": 43.005,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48127,
    "c": 0.15033,
    "h": 329.5
  },
  "luminance": 0.09857
}

Semantic roles & 50–950 ramp

primary
#8A3786
secondary
#6DB070
accent
#D35B55
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3786

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

Preview Lab → · Contrast checker → · Palette generator →

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