#8A1B7A#8A1B7A

#8A1B7A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.176 H 334.9°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#8A1B7A
RGBrgb(138, 27, 122)
HSLhsl(309, 67%, 32%)
HSVhsv(309, 80%, 54%)
CMYKcmyk(0%, 80.4%, 11.6%, 45.9%)
CIE-LABlab(33.12, 54.73, -27.30)
CIE-LCHlch(33.12, 61.16, 333.49°)
OKLaboklab(44.69% 0.1598 -0.0747)
OKLCHoklch(44.69% 0.176 334.9)
XYZxyz(14.3862, 7.5936, 19.1166)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B7A #1B8A2B
analogous
#631B8A #8A1B7A #8A1B42
triadic
#8A1B7A #7A8A1B #1B7A8A
tetradic
#8A1B7A #8A631B #1B8A2B #1B428A
square
#8A1B7A #8A631B #1B8A2B #1B428A
split-complementary
#8A1B7A #428A1B #1B8A63
monochromatic
#24071F #57114D #8A1B7A #BD25A7 #DB45C5

Accessibility & contrast

On white

8.34
#8A1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8A1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B7A
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B7A#FFFFFF#000000##FFFFFF
##8A1B7A1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447C
Deuteranopia (green-blind)
#445477
Tritanopia (blue-blind)
#91264A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1b7a;
/* rgb */ color: rgb(138, 27, 122);
/* oklch */ color: oklch(44.7% 0.176 334.9);
Tailwind
colors: {
  custom: {
    50: '#b066a1',
    500: '#8a1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b7a;
$custom-light: #b066a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b7a",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 308.649,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44693,
    "c": 0.1764,
    "h": 334.9
  },
  "luminance": 0.07592
}

Semantic roles & 50–950 ramp

primary
#8A1B7A
secondary
#45BC56
accent
#EA573E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8A1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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