#8A319C#8A319C

#8A319C is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.7% C 0.179 H 320.4°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#8A319C
RGBrgb(138, 49, 156)
HSLhsl(290, 52%, 40%)
HSVhsv(290, 69%, 61%)
CMYKcmyk(11.5%, 68.6%, 0%, 38.8%)
CIE-LABlab(37.84, 52.79, -40.76)
CIE-LCHlch(37.84, 66.69, 322.33°)
OKLaboklab(48.71% 0.138 -0.1139)
OKLCHoklch(48.71% 0.179 320.4)
XYZxyz(17.5796, 10.0011, 32.4505)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A319C #439C31
analogous
#55319C #8A319C #9C3178
triadic
#8A319C #9C8A31 #319C8A
tetradic
#8A319C #9C5531 #439C31 #31789C
square
#8A319C #9C5531 #439C31 #31789C
split-complementary
#8A319C #789C31 #319C55
monochromatic
#38143F #61226D #8A319C #AF45C5 #C374D3

Accessibility & contrast

On white

7.00
#8A319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8A319C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A319C
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A319C#FFFFFF#000000##FFFFFF
##8A319C1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A539F
Deuteranopia (green-blind)
#3B5C99
Tritanopia (blue-blind)
#8B4463
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a319c;
/* rgb */ color: rgb(138, 49, 156);
/* oklch */ color: oklch(48.7% 0.179 320.4);
Tailwind
colors: {
  custom: {
    50: '#af71ba',
    500: '#8a319c',
    950: '#000000',
  },
}
SCSS
$custom: #8a319c;
$custom-light: #af71ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a319c",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 289.907,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48711,
    "c": 0.17891,
    "h": 320.4
  },
  "luminance": 0.1
}

Semantic roles & 50–950 ramp

primary
#8A319C
secondary
#7BBB6D
accent
#DC4C64
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A319C

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

Preview Lab → · Contrast checker → · Palette generator →

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