#8A319D#8A319D

#8A319D is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.8% C 0.180 H 320.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8A319D
RGBrgb(138, 49, 157)
HSLhsl(289, 52%, 40%)
HSVhsv(289, 69%, 62%)
CMYKcmyk(12.1%, 68.8%, 0%, 38.4%)
CIE-LABlab(37.91, 52.99, -41.26)
CIE-LCHlch(37.91, 67.16, 322.09°)
OKLaboklab(48.77% 0.1379 -0.1154)
OKLCHoklch(48.77% 0.18 320.1)
XYZxyz(17.6646, 10.0351, 32.8983)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A319D #449D31
analogous
#54319D #8A319D #9D317A
triadic
#8A319D #9D8A31 #319D8A
tetradic
#8A319D #9D5431 #449D31 #317A9D
square
#8A319D #9D5431 #449D31 #317A9D
split-complementary
#8A319D #7A9D31 #319D54
monochromatic
#381440 #61226E #8A319D #AF46C5 #C375D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A319D#FFFFFF#000000##FFFFFF
##8A319D1.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)
#0653A0
Deuteranopia (green-blind)
#3A5C9A
Tritanopia (blue-blind)
#8B4463
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a319d;
/* rgb */ color: rgb(138, 49, 157);
/* oklch */ color: oklch(48.8% 0.180 320.1);
Tailwind
colors: {
  custom: {
    50: '#af71ba',
    500: '#8a319d',
    950: '#000000',
  },
}
SCSS
$custom: #8a319d;
$custom-light: #af71ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a319d",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 289.444,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48774,
    "c": 0.17984,
    "h": 320.1
  },
  "luminance": 0.10034
}

Semantic roles & 50–950 ramp

primary
#8A319D
secondary
#7CBC6E
accent
#DC4C65
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A319D

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

Preview Lab → · Contrast checker → · Palette generator →

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