#8A1381#8A1381

#8A1381 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.188 H 331.9°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#8A1381
RGBrgb(138, 19, 129)
HSLhsl(305, 76%, 31%)
HSVhsv(305, 86%, 54%)
CMYKcmyk(0%, 86.2%, 6.5%, 45.9%)
CIE-LABlab(32.82, 57.81, -32.16)
CIE-LCHlch(32.82, 66.15, 330.91°)
OKLaboklab(44.61% 0.1658 -0.0887)
OKLCHoklch(44.61% 0.188 331.9)
XYZxyz(14.6766, 7.4553, 21.4307)
Luminance0.0745 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1381 #138A1C
analogous
#57138A #8A1381 #8A1345
triadic
#8A1381 #818A13 #13818A
tetradic
#8A1381 #8A5713 #138A1C #13458A
square
#8A1381 #8A5713 #138A1C #13458A
split-complementary
#8A1381 #458A13 #138A57
monochromatic
#1E041C #540C4F #8A1381 #C01AB3 #E334D6

Accessibility & contrast

On white

8.43
#8A1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#8A1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1381
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1381#FFFFFF#000000##FFFFFF
##8A13811.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024384
Deuteranopia (green-blind)
#3E537E
Tritanopia (blue-blind)
#90254C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1381;
/* rgb */ color: rgb(138, 19, 129);
/* oklch */ color: oklch(44.6% 0.188 331.9);
Tailwind
colors: {
  custom: {
    50: '#b064a6',
    500: '#8a1381',
    950: '#000000',
  },
}
SCSS
$custom: #8a1381;
$custom-light: #b064a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1381",
  "rgb": {
    "r": 138,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 304.538,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.44605,
    "c": 0.18807,
    "h": 331.9
  },
  "luminance": 0.07454
}

Semantic roles & 50–950 ramp

primary
#8A1381
secondary
#3ABE44
accent
#F24435
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1381

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

Preview Lab → · Contrast checker → · Palette generator →

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