#8A317D#8A317D

#8A317D is a mid, vivid purple. Relative luminance 0.091; OKLCH L 46.9% C 0.152 H 333.9°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#8A317D
RGBrgb(138, 49, 125)
HSLhsl(309, 48%, 37%)
HSVhsv(309, 64%, 54%)
CMYKcmyk(0%, 64.5%, 9.4%, 45.9%)
CIE-LABlab(36.14, 47.13, -24.44)
CIE-LCHlch(36.14, 53.09, 332.59°)
OKLaboklab(46.93% 0.1363 -0.0667)
OKLCHoklch(46.93% 0.152 333.9)
XYZxyz(15.2813, 9.0818, 20.3462)
Luminance0.0908 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A317D #318A3E
analogous
#6B318A #8A317D #8A3151
triadic
#8A317D #7D8A31 #317D8A
tetradic
#8A317D #8A6B31 #318A3E #31518A
square
#8A317D #8A6B31 #318A3E #31518A
split-complementary
#8A317D #518A31 #318A6B
monochromatic
#30112B #5D2154 #8A317D #B741A6 #CA6BBC

Accessibility & contrast

On white

7.46
#8A317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A317D
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A317D#FFFFFF#000000##FFFFFF
##8A317D1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304D7F
Deuteranopia (green-blind)
#4C5A7B
Tritanopia (blue-blind)
#903852
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a317d;
/* rgb */ color: rgb(138, 49, 125);
/* oklch */ color: oklch(46.9% 0.152 333.9);
Tailwind
colors: {
  custom: {
    50: '#af70a3',
    500: '#8a317d',
    950: '#000000',
  },
}
SCSS
$custom: #8a317d;
$custom-light: #af70a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a317d",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 308.764,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46926,
    "c": 0.15175,
    "h": 333.9
  },
  "luminance": 0.09081
}

Semantic roles & 50–950 ramp

primary
#8A317D
secondary
#65B270
accent
#D76451
background
#FBF7FA
surface
#F6EDF3
border
#D0C8CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A317D

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

Preview Lab → · Contrast checker → · Palette generator →

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