#8A317F#8A317F

#8A317F is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.0% C 0.153 H 332.9°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#8A317F
RGBrgb(138, 49, 127)
HSLhsl(307, 48%, 37%)
HSVhsv(307, 64%, 54%)
CMYKcmyk(0%, 64.5%, 8%, 45.9%)
CIE-LABlab(36.24, 47.47, -25.53)
CIE-LCHlch(36.24, 53.90, 331.73°)
OKLaboklab(47.03% 0.1366 -0.0698)
OKLCHoklch(47.03% 0.153 332.9)
XYZxyz(15.4103, 9.1334, 21.0258)
Luminance0.0913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A317F #318A3C
analogous
#69318A #8A317F #8A3153
triadic
#8A317F #7F8A31 #317F8A
tetradic
#8A317F #8A6931 #318A3C #31538A
square
#8A317F #8A6931 #318A3C #31538A
split-complementary
#8A317F #538A31 #318A69
monochromatic
#30112C #5D2155 #8A317F #B741A9 #CA6BBF

Accessibility & contrast

On white

7.43
#8A317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8A317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A317F
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A317F#FFFFFF#000000##FFFFFF
##8A317F1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4D81
Deuteranopia (green-blind)
#4C5A7D
Tritanopia (blue-blind)
#903853
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a317f;
/* rgb */ color: rgb(138, 49, 127);
/* oklch */ color: oklch(47.0% 0.153 332.9);
Tailwind
colors: {
  custom: {
    50: '#af70a4',
    500: '#8a317f',
    950: '#000000',
  },
}
SCSS
$custom: #8a317f;
$custom-light: #af70a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a317f",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 307.416,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4703,
    "c": 0.15339,
    "h": 332.9
  },
  "luminance": 0.09132
}

Semantic roles & 50–950 ramp

primary
#8A317F
secondary
#65B26E
accent
#D76151
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A317F

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

Preview Lab → · Contrast checker → · Palette generator →

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