#8A1C81#8A1C81

#8A1C81 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.181 H 331.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#8A1C81
RGBrgb(138, 28, 129)
HSLhsl(305, 66%, 33%)
HSVhsv(305, 80%, 54%)
CMYKcmyk(0%, 79.7%, 6.5%, 45.9%)
CIE-LABlab(33.61, 55.54, -30.92)
CIE-LCHlch(33.61, 63.56, 330.89°)
OKLaboklab(45.16% 0.1592 -0.0852)
OKLCHoklch(45.16% 0.181 331.9)
XYZxyz(14.8590, 7.8200, 21.4914)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C81 #1C8A25
analogous
#5C1C8A #8A1C81 #8A1C4A
triadic
#8A1C81 #818A1C #1C818A
tetradic
#8A1C81 #8A5C1C #1C8A25 #1C4A8A
square
#8A1C81 #8A5C1C #1C8A25 #1C4A8A
split-complementary
#8A1C81 #4A8A1C #1C8A5C
monochromatic
#240722 #571251 #8A1C81 #BD26B1 #DA47CE

Accessibility & contrast

On white

8.19
#8A1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8A1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C81
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C81#FFFFFF#000000##FFFFFF
##8A1C811.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124584
Deuteranopia (green-blind)
#41547E
Tritanopia (blue-blind)
#902A4E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1c81;
/* rgb */ color: rgb(138, 28, 129);
/* oklch */ color: oklch(45.2% 0.181 331.9);
Tailwind
colors: {
  custom: {
    50: '#b066a6',
    500: '#8a1c81',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c81;
$custom-light: #b066a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c81",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 304.909,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45163,
    "c": 0.18057,
    "h": 331.9
  },
  "luminance": 0.07819
}

Semantic roles & 50–950 ramp

primary
#8A1C81
secondary
#46BB50
accent
#E94D3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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