#8A3181#8A3181

#8A3181 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.1% C 0.155 H 331.9°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#8A3181
RGBrgb(138, 49, 129)
HSLhsl(306, 48%, 37%)
HSVhsv(306, 64%, 54%)
CMYKcmyk(0%, 64.5%, 6.5%, 45.9%)
CIE-LABlab(36.34, 47.81, -26.62)
CIE-LCHlch(36.34, 54.72, 330.90°)
OKLaboklab(47.14% 0.1368 -0.0729)
OKLCHoklch(47.14% 0.155 331.9)
XYZxyz(15.5420, 9.1860, 21.7191)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3181 #318A3A
analogous
#67318A #8A3181 #8A3155
triadic
#8A3181 #818A31 #31818A
tetradic
#8A3181 #8A6731 #318A3A #31558A
square
#8A3181 #8A6731 #318A3A #31558A
split-complementary
#8A3181 #558A31 #318A67
monochromatic
#30112D #5D2157 #8A3181 #B741AB #CA6BC1

Accessibility & contrast

On white

7.40
#8A3181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A3181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3181
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3181#FFFFFF#000000##FFFFFF
##8A31811.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4D83
Deuteranopia (green-blind)
#4B5A7F
Tritanopia (blue-blind)
#903954
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a3181;
/* rgb */ color: rgb(138, 49, 129);
/* oklch */ color: oklch(47.1% 0.155 331.9);
Tailwind
colors: {
  custom: {
    50: '#af70a6',
    500: '#8a3181',
    950: '#000000',
  },
}
SCSS
$custom: #8a3181;
$custom-light: #af70a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3181",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 306.067,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47136,
    "c": 0.15504,
    "h": 331.9
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#8A3181
secondary
#65B26D
accent
#D75E51
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3181

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

Preview Lab → · Contrast checker → · Palette generator →

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