#8A3A97#8A3A97

#8A3A97 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.5% C 0.162 H 321.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8A3A97
RGBrgb(138, 58, 151)
HSLhsl(292, 44%, 41%)
HSVhsv(292, 62%, 59%)
CMYKcmyk(8.6%, 61.6%, 0%, 40.8%)
CIE-LABlab(39.01, 47.77, -35.88)
CIE-LCHlch(39.01, 59.74, 323.09°)
OKLaboklab(49.46% 0.127 -0.0998)
OKLCHoklch(49.46% 0.162 321.8)
XYZxyz(17.5796, 10.6646, 30.4047)
Luminance0.1066 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3A97 #47973A
analogous
#5B3A97 #8A3A97 #973A75
triadic
#8A3A97 #978A3A #3A978A
tetradic
#8A3A97 #975B3A #47973A #3A7597
square
#8A3A97 #975B3A #47973A #3A7597
split-complementary
#8A3A97 #75973A #3A975B
monochromatic
#39183F #62296B #8A3A97 #AE52BC #C27ECD

Accessibility & contrast

On white

6.70
#8A3A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8A3A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3A97
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3A97#FFFFFF#000000##FFFFFF
##8A3A971.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27569A
Deuteranopia (green-blind)
#455F95
Tritanopia (blue-blind)
#8C4863
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a3a97;
/* rgb */ color: rgb(138, 58, 151);
/* oklch */ color: oklch(49.5% 0.162 321.8);
Tailwind
colors: {
  custom: {
    50: '#af75b6',
    500: '#8a3a97',
    950: '#000000',
  },
}
SCSS
$custom: #8a3a97;
$custom-light: #af75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3a97",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 291.613,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49459,
    "c": 0.16152,
    "h": 321.8
  },
  "luminance": 0.10664
}

Semantic roles & 50–950 ramp

primary
#8A3A97
secondary
#7FB776
accent
#D45466
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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