#8A1F97#8A1F97

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

Color values

HEX#8A1F97
RGBrgb(138, 31, 151)
HSLhsl(294, 66%, 36%)
HSVhsv(294, 79%, 59%)
CMYKcmyk(8.6%, 79.5%, 0%, 40.8%)
CIE-LABlab(35.24, 58.38, -41.89)
CIE-LCHlch(35.24, 71.86, 324.34°)
OKLaboklab(46.75% 0.1558 -0.1171)
OKLCHoklch(46.75% 0.195 323.1)
XYZxyz(16.5566, 8.6186, 30.0637)
Luminance0.0862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F97 #2C971F
analogous
#4E1F97 #8A1F97 #971F68
triadic
#8A1F97 #978A1F #1F978A
tetradic
#8A1F97 #974E1F #2C971F #1F6897
square
#8A1F97 #974E1F #2C971F #1F6897
split-complementary
#8A1F97 #68971F #1F974E
monochromatic
#2D0A31 #5C1564 #8A1F97 #B829CA #CD54DC

Accessibility & contrast

On white

7.71
#8A1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F97
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F97#FFFFFF#000000##FFFFFF
##8A1F971.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.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: #8a1f97;
/* rgb */ color: rgb(138, 31, 151);
/* oklch */ color: oklch(46.8% 0.195 323.1);
Tailwind
colors: {
  custom: {
    50: '#b068b6',
    500: '#8a1f97',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f97;
$custom-light: #b068b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f97",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 293.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46752,
    "c": 0.19495,
    "h": 323.1
  },
  "luminance": 0.08618
}

Semantic roles & 50–950 ramp

primary
#8A1F97
secondary
#5EBF52
accent
#E93F51
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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