#8A3797#8A3797

#8A3797 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.1% C 0.166 H 322.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#8A3797
RGBrgb(138, 55, 151)
HSLhsl(292, 47%, 40%)
HSVhsv(292, 64%, 59%)
CMYKcmyk(8.6%, 63.6%, 0%, 40.8%)
CIE-LABlab(38.50, 49.17, -36.69)
CIE-LCHlch(38.50, 61.35, 323.27°)
OKLaboklab(49.09% 0.1308 -0.1021)
OKLCHoklch(49.09% 0.166 322)
XYZxyz(17.4327, 10.3709, 30.3557)
Luminance0.1037 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3797 #449737
analogous
#5A3797 #8A3797 #973774
triadic
#8A3797 #978A37 #37978A
tetradic
#8A3797 #975A37 #449737 #377497
square
#8A3797 #975A37 #449737 #377497
split-complementary
#8A3797 #749737 #37975A
monochromatic
#38163D #61276A #8A3797 #AF4DBE #C37ACF

Accessibility & contrast

On white

6.83
#8A3797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A3797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3797
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3797#FFFFFF#000000##FFFFFF
##8A37971.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559A
Deuteranopia (green-blind)
#435E95
Tritanopia (blue-blind)
#8C4662
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a3797;
/* rgb */ color: rgb(138, 55, 151);
/* oklch */ color: oklch(49.1% 0.166 322.0);
Tailwind
colors: {
  custom: {
    50: '#af74b6',
    500: '#8a3797',
    950: '#000000',
  },
}
SCSS
$custom: #8a3797;
$custom-light: #af74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3797",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 291.875,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49089,
    "c": 0.16595,
    "h": 322
  },
  "luminance": 0.1037
}

Semantic roles & 50–950 ramp

primary
#8A3797
secondary
#7CB872
accent
#D65264
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3797

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

Preview Lab → · Contrast checker → · Palette generator →

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