#8A319E#8A319E

#8A319E is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.8% C 0.181 H 319.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8A319E
RGBrgb(138, 49, 158)
HSLhsl(289, 53%, 41%)
HSVhsv(289, 69%, 62%)
CMYKcmyk(12.7%, 69%, 0%, 38%)
CIE-LABlab(37.97, 53.18, -41.77)
CIE-LCHlch(37.97, 67.62, 321.85°)
OKLaboklab(48.84% 0.1379 -0.1169)
OKLCHoklch(48.84% 0.181 319.7)
XYZxyz(17.7503, 10.0694, 33.3497)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A319E #459E31
analogous
#53319E #8A319E #9E317B
triadic
#8A319E #9E8A31 #319E8A
tetradic
#8A319E #9E5331 #459E31 #317B9E
square
#8A319E #9E5331 #459E31 #317B9E
split-complementary
#8A319E #7B9E31 #319E53
monochromatic
#381441 #61236F #8A319E #AE46C6 #C375D4

Accessibility & contrast

On white

6.97
#8A319E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A319E
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A319E#FFFFFF#000000##FFFFFF
##8A319E1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0353A1
Deuteranopia (green-blind)
#3A5C9B
Tritanopia (blue-blind)
#8A4564
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a319e;
/* rgb */ color: rgb(138, 49, 158);
/* oklch */ color: oklch(48.8% 0.181 319.7);
Tailwind
colors: {
  custom: {
    50: '#af71bb',
    500: '#8a319e',
    950: '#000000',
  },
}
SCSS
$custom: #8a319e;
$custom-light: #af71bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a319e",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 288.991,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48838,
    "c": 0.18076,
    "h": 319.7
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#8A319E
secondary
#7DBC6E
accent
#DC4C66
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A319E

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

Preview Lab → · Contrast checker → · Palette generator →

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