#8A3E97#8A3E97

#8A3E97 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.0% C 0.155 H 321.6°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8A3E97
RGBrgb(138, 62, 151)
HSLhsl(291, 42%, 42%)
HSVhsv(291, 59%, 59%)
CMYKcmyk(8.6%, 58.9%, 0%, 40.8%)
CIE-LABlab(39.72, 45.83, -34.75)
CIE-LCHlch(39.72, 57.52, 322.83°)
OKLaboklab(49.98% 0.1218 -0.0965)
OKLCHoklch(49.98% 0.155 321.6)
XYZxyz(17.7892, 11.0837, 30.4745)
Luminance0.1108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3E97 #4B973E
analogous
#5E3E97 #8A3E97 #973E78
triadic
#8A3E97 #978A3E #3E978A
tetradic
#8A3E97 #975E3E #4B973E #3E7897
square
#8A3E97 #975E3E #4B973E #3E7897
split-complementary
#8A3E97 #78973E #3E975E
monochromatic
#3B1A40 #622C6C #8A3E97 #AC58BA #C283CC

Accessibility & contrast

On white

6.53
#8A3E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A3E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3E97
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3E97#FFFFFF#000000##FFFFFF
##8A3E971.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D589A
Deuteranopia (green-blind)
#486195
Tritanopia (blue-blind)
#8B4B64
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3e97;
/* rgb */ color: rgb(138, 62, 151);
/* oklch */ color: oklch(50.0% 0.155 321.6);
Tailwind
colors: {
  custom: {
    50: '#af78b6',
    500: '#8a3e97',
    950: '#000000',
  },
}
SCSS
$custom: #8a3e97;
$custom-light: #af78b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3e97",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 291.236,
    "s": 41.784,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49977,
    "c": 0.15539,
    "h": 321.6
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#8A3E97
secondary
#83B67A
accent
#D25668
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3E97

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

Preview Lab → · Contrast checker → · Palette generator →

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