#8A318A#8A318A

#8A318A is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.163 H 327.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8A318A
RGBrgb(138, 49, 138)
HSLhsl(300, 48%, 37%)
HSVhsv(300, 64%, 54%)
CMYKcmyk(0%, 64.5%, 0%, 45.9%)
CIE-LABlab(36.81, 49.40, -31.43)
CIE-LCHlch(36.81, 58.55, 327.53°)
OKLaboklab(47.63% 0.1376 -0.0868)
OKLCHoklch(47.63% 0.163 327.8)
XYZxyz(16.1668, 9.4359, 25.0096)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A318A #318A31
analogous
#5E318A #8A318A #8A315E
triadic
#8A318A #8A8A31 #318A8A
tetradic
#8A318A #8A5E31 #318A31 #315E8A
square
#8A318A #8A5E31 #318A31 #315E8A
split-complementary
#8A318A #5E8A31 #318A5E
monochromatic
#301130 #5D215D #8A318A #B741B7 #CA6BCA

Accessibility & contrast

On white

7.27
#8A318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A318A
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A318A#FFFFFF#000000##FFFFFF
##8A318A1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264F8D
Deuteranopia (green-blind)
#465B88
Tritanopia (blue-blind)
#8E3D59
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a318a;
/* rgb */ color: rgb(138, 49, 138);
/* oklch */ color: oklch(47.6% 0.163 327.8);
Tailwind
colors: {
  custom: {
    50: '#af70ac',
    500: '#8a318a',
    950: '#000000',
  },
}
SCSS
$custom: #8a318a;
$custom-light: #af70ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a318a",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47631,
    "c": 0.16273,
    "h": 327.8
  },
  "luminance": 0.09435
}

Semantic roles & 50–950 ramp

primary
#8A318A
secondary
#65B265
accent
#D75151
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A318A

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

Preview Lab → · Contrast checker → · Palette generator →

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