#8A1C97#8A1C97

#8A1C97 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.198 H 323.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8A1C97
RGBrgb(138, 28, 151)
HSLhsl(294, 69%, 35%)
HSVhsv(294, 81%, 59%)
CMYKcmyk(8.6%, 81.5%, 0%, 40.8%)
CIE-LABlab(34.94, 59.25, -42.37)
CIE-LCHlch(34.94, 72.84, 324.43°)
OKLaboklab(46.54% 0.1582 -0.1185)
OKLCHoklch(46.54% 0.198 323.2)
XYZxyz(16.4819, 8.4692, 30.0387)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C97 #29971C
analogous
#4D1C97 #8A1C97 #971C66
triadic
#8A1C97 #978A1C #1C978A
tetradic
#8A1C97 #974D1C #29971C #1C6697
square
#8A1C97 #974D1C #29971C #1C6697
split-complementary
#8A1C97 #66971C #1C974D
monochromatic
#2C0930 #5B1263 #8A1C97 #B926CB #CF4FDE

Accessibility & contrast

On white

7.80
#8A1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C97
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C97#FFFFFF#000000##FFFFFF
##8A1C971.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#335694
Tritanopia (blue-blind)
#8C365A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a1c97;
/* rgb */ color: rgb(138, 28, 151);
/* oklch */ color: oklch(46.5% 0.198 323.2);
Tailwind
colors: {
  custom: {
    50: '#b067b6',
    500: '#8a1c97',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c97;
$custom-light: #b067b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c97",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 293.659,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46542,
    "c": 0.19765,
    "h": 323.2
  },
  "luminance": 0.08468
}

Semantic roles & 50–950 ramp

primary
#8A1C97
secondary
#5AC14E
accent
#EC3C4F
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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