#8A317E#8A317E

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

Color values

HEX#8A317E
RGBrgb(138, 49, 126)
HSLhsl(308, 48%, 37%)
HSVhsv(308, 64%, 54%)
CMYKcmyk(0%, 64.5%, 8.7%, 45.9%)
CIE-LABlab(36.19, 47.30, -24.99)
CIE-LCHlch(36.19, 53.50, 332.15°)
OKLaboklab(46.98% 0.1364 -0.0683)
OKLCHoklch(46.98% 0.153 333.4)
XYZxyz(15.3455, 9.1074, 20.6843)
Luminance0.0911 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A317E #318A3D
analogous
#6A318A #8A317E #8A3152
triadic
#8A317E #7E8A31 #317E8A
tetradic
#8A317E #8A6A31 #318A3D #31528A
square
#8A317E #8A6A31 #318A3D #31528A
split-complementary
#8A317E #528A31 #318A6A
monochromatic
#30112C #5D2155 #8A317E #B741A7 #CA6BBE

Accessibility & contrast

On white

7.44
#8A317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A317E
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A317E#FFFFFF#000000##FFFFFF
##8A317E1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a317e;
/* rgb */ color: rgb(138, 49, 126);
/* oklch */ color: oklch(47.0% 0.153 333.4);
Tailwind
colors: {
  custom: {
    50: '#af70a3',
    500: '#8a317e',
    950: '#000000',
  },
}
SCSS
$custom: #8a317e;
$custom-light: #af70a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a317e",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 308.09,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46978,
    "c": 0.15257,
    "h": 333.4
  },
  "luminance": 0.09106
}

Semantic roles & 50–950 ramp

primary
#8A317E
secondary
#65B26F
accent
#D76351
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A317E

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

Preview Lab → · Contrast checker → · Palette generator →

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