#8A319B#8A319B

#8A319B is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.6% C 0.178 H 320.8°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8A319B
RGBrgb(138, 49, 155)
HSLhsl(290, 52%, 40%)
HSVhsv(290, 68%, 61%)
CMYKcmyk(11%, 68.4%, 0%, 39.2%)
CIE-LABlab(37.78, 52.60, -40.25)
CIE-LCHlch(37.78, 66.23, 322.57°)
OKLaboklab(48.65% 0.138 -0.1124)
OKLCHoklch(48.65% 0.178 320.8)
XYZxyz(17.4953, 9.9673, 32.0063)
Luminance0.0997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A319B #429B31
analogous
#55319B #8A319B #9B3177
triadic
#8A319B #9B8A31 #319B8A
tetradic
#8A319B #9B5531 #429B31 #31779B
square
#8A319B #9B5531 #429B31 #31779B
split-complementary
#8A319B #779B31 #319B55
monochromatic
#37143E #61226D #8A319B #B045C4 #C473D3

Accessibility & contrast

On white

7.02
#8A319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A319B
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A319B#FFFFFF#000000##FFFFFF
##8A319B1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D539E
Deuteranopia (green-blind)
#3C5C98
Tritanopia (blue-blind)
#8B4462
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a319b;
/* rgb */ color: rgb(138, 49, 155);
/* oklch */ color: oklch(48.6% 0.178 320.8);
Tailwind
colors: {
  custom: {
    50: '#af71b9',
    500: '#8a319b',
    950: '#000000',
  },
}
SCSS
$custom: #8a319b;
$custom-light: #af71b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a319b",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 290.377,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.48648,
    "c": 0.178,
    "h": 320.8
  },
  "luminance": 0.09966
}

Semantic roles & 50–950 ramp

primary
#8A319B
secondary
#79BB6D
accent
#DB4C63
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A319B

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

Preview Lab → · Contrast checker → · Palette generator →

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