#8A319A#8A319A

#8A319A is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.177 H 321.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#8A319A
RGBrgb(138, 49, 154)
HSLhsl(291, 52%, 40%)
HSVhsv(291, 68%, 60%)
CMYKcmyk(10.4%, 68.2%, 0%, 39.6%)
CIE-LABlab(37.72, 52.40, -39.74)
CIE-LCHlch(37.72, 65.77, 322.82°)
OKLaboklab(48.59% 0.138 -0.111)
OKLCHoklch(48.59% 0.177 321.2)
XYZxyz(17.4116, 9.9339, 31.5659)
Luminance0.0993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A319A #419A31
analogous
#55319A #8A319A #9A3176
triadic
#8A319A #9A8A31 #319A8A
tetradic
#8A319A #9A5531 #419A31 #31769A
square
#8A319A #9A5531 #419A31 #31769A
split-complementary
#8A319A #769A31 #319A55
monochromatic
#37133D #60226C #8A319A #B045C4 #C473D2

Accessibility & contrast

On white

7.03
#8A319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A319A
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A319A#FFFFFF#000000##FFFFFF
##8A319A1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F529D
Deuteranopia (green-blind)
#3D5C97
Tritanopia (blue-blind)
#8B4361
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a319a;
/* rgb */ color: rgb(138, 49, 154);
/* oklch */ color: oklch(48.6% 0.177 321.2);
Tailwind
colors: {
  custom: {
    50: '#af71b8',
    500: '#8a319a',
    950: '#000000',
  },
}
SCSS
$custom: #8a319a;
$custom-light: #af71b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a319a",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 290.857,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48585,
    "c": 0.17708,
    "h": 321.2
  },
  "luminance": 0.09933
}

Semantic roles & 50–950 ramp

primary
#8A319A
secondary
#78BA6C
accent
#DB4D62
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A319A

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

Preview Lab → · Contrast checker → · Palette generator →

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