#8A1E97#8A1E97

#8A1E97 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.7% C 0.196 H 323.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8A1E97
RGBrgb(138, 30, 151)
HSLhsl(294, 67%, 35%)
HSVhsv(294, 80%, 59%)
CMYKcmyk(8.6%, 80.1%, 0%, 40.8%)
CIE-LABlab(35.14, 58.68, -42.05)
CIE-LCHlch(35.14, 72.19, 324.37°)
OKLaboklab(46.68% 0.1567 -0.1176)
OKLCHoklch(46.68% 0.196 323.1)
XYZxyz(16.5309, 8.5672, 30.0551)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E97 #2B971E
analogous
#4E1E97 #8A1E97 #971E67
triadic
#8A1E97 #978A1E #1E978A
tetradic
#8A1E97 #974E1E #2B971E #1E6797
square
#8A1E97 #974E1E #2B971E #1E6797
split-complementary
#8A1E97 #67971E #1E974E
monochromatic
#2D0A31 #5B1464 #8A1E97 #B928CA #CE53DD

Accessibility & contrast

On white

7.74
#8A1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E97
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E97#FFFFFF#000000##FFFFFF
##8A1E971.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#345794
Tritanopia (blue-blind)
#8C375B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a1e97;
/* rgb */ color: rgb(138, 30, 151);
/* oklch */ color: oklch(46.7% 0.196 323.1);
Tailwind
colors: {
  custom: {
    50: '#b068b6',
    500: '#8a1e97',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e97;
$custom-light: #b068b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e97",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 293.554,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4668,
    "c": 0.19587,
    "h": 323.1
  },
  "luminance": 0.08566
}

Semantic roles & 50–950 ramp

primary
#8A1E97
secondary
#5DC051
accent
#EA3E50
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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