#8A3986#8A3986

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

Color values

HEX#8A3986
RGBrgb(138, 57, 134)
HSLhsl(303, 42%, 38%)
HSVhsv(303, 59%, 54%)
CMYKcmyk(0%, 58.7%, 2.9%, 45.9%)
CIE-LABlab(37.94, 45.01, -27.20)
CIE-LCHlch(37.94, 52.59, 328.85°)
OKLaboklab(48.38% 0.1268 -0.0747)
OKLCHoklch(48.38% 0.147 329.5)
XYZxyz(16.2473, 10.0518, 23.6341)
Luminance0.1005 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3986 #398A3D
analogous
#65398A #8A3986 #8A395D
triadic
#8A3986 #868A39 #39868A
tetradic
#8A3986 #8A6539 #398A3D #395D8A
square
#8A3986 #8A6539 #398A3D #395D8A
split-complementary
#8A3986 #5D8A39 #398A65
monochromatic
#331532 #5F275C #8A3986 #B54BB0 #C777C3

Accessibility & contrast

On white

6.98
#8A3986 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8A3986 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3986
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3986#FFFFFF#000000##FFFFFF
##8A39861.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335288
Deuteranopia (green-blind)
#4D5D84
Tritanopia (blue-blind)
#8F415A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3986;
/* rgb */ color: rgb(138, 57, 134);
/* oklch */ color: oklch(48.4% 0.147 329.5);
Tailwind
colors: {
  custom: {
    50: '#ae74a9',
    500: '#8a3986',
    950: '#000000',
  },
}
SCSS
$custom: #8a3986;
$custom-light: #ae74a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3986",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 134
  },
  "hsl": {
    "h": 302.963,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.48382,
    "c": 0.1472,
    "h": 329.5
  },
  "luminance": 0.10051
}

Semantic roles & 50–950 ramp

primary
#8A3986
secondary
#6FB072
accent
#D15D56
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3986

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

Preview Lab → · Contrast checker → · Palette generator →

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