#8A3D97#8A3D97

#8A3D97 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 49.8% C 0.157 H 321.7°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8A3D97
RGBrgb(138, 61, 151)
HSLhsl(291, 42%, 42%)
HSVhsv(291, 60%, 59%)
CMYKcmyk(8.6%, 59.6%, 0%, 40.8%)
CIE-LABlab(39.54, 46.32, -35.04)
CIE-LCHlch(39.54, 58.08, 322.89°)
OKLaboklab(49.85% 0.1231 -0.0974)
OKLCHoklch(49.85% 0.157 321.7)
XYZxyz(17.7353, 10.9760, 30.4565)
Luminance0.1098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3D97 #4A973D
analogous
#5D3D97 #8A3D97 #973D77
triadic
#8A3D97 #978A3D #3D978A
tetradic
#8A3D97 #975D3D #4A973D #3D7797
square
#8A3D97 #975D3D #4A973D #3D7797
split-complementary
#8A3D97 #77973D #3D975D
monochromatic
#3A1A40 #622B6B #8A3D97 #AC56BB #C282CC

Accessibility & contrast

On white

6.57
#8A3D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A3D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3D97
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3D97#FFFFFF#000000##FFFFFF
##8A3D971.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589A
Deuteranopia (green-blind)
#476095
Tritanopia (blue-blind)
#8B4A64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3d97;
/* rgb */ color: rgb(138, 61, 151);
/* oklch */ color: oklch(49.8% 0.157 321.7);
Tailwind
colors: {
  custom: {
    50: '#af77b6',
    500: '#8a3d97',
    950: '#000000',
  },
}
SCSS
$custom: #8a3d97;
$custom-light: #af77b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3d97",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 291.333,
    "s": 42.453,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49845,
    "c": 0.15695,
    "h": 321.7
  },
  "luminance": 0.10975
}

Semantic roles & 50–950 ramp

primary
#8A3D97
secondary
#82B779
accent
#D25668
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3D97

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

Preview Lab → · Contrast checker → · Palette generator →

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