#8A1781#8A1781

#8A1781 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.185 H 331.9°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#8A1781
RGBrgb(138, 23, 129)
HSLhsl(305, 71%, 32%)
HSVhsv(305, 83%, 54%)
CMYKcmyk(0%, 83.3%, 6.5%, 45.9%)
CIE-LABlab(33.14, 56.88, -31.66)
CIE-LCHlch(33.14, 65.10, 330.90°)
OKLaboklab(44.83% 0.1631 -0.0873)
OKLCHoklch(44.83% 0.185 331.9)
XYZxyz(14.7501, 7.6023, 21.4552)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1781 #178A20
analogous
#5A178A #8A1781 #8A1748
triadic
#8A1781 #818A17 #17818A
tetradic
#8A1781 #8A5A17 #178A20 #17488A
square
#8A1781 #8A5A17 #178A20 #17488A
split-complementary
#8A1781 #488A17 #178A5A
monochromatic
#21061F #560E50 #8A1781 #BE20B2 #DF3DD2

Accessibility & contrast

On white

8.33
#8A1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1781
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1781#FFFFFF#000000##FFFFFF
##8A17811.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094484
Deuteranopia (green-blind)
#40537E
Tritanopia (blue-blind)
#90274D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1781;
/* rgb */ color: rgb(138, 23, 129);
/* oklch */ color: oklch(44.8% 0.185 331.9);
Tailwind
colors: {
  custom: {
    50: '#b065a6',
    500: '#8a1781',
    950: '#000000',
  },
}
SCSS
$custom: #8a1781;
$custom-light: #b065a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1781",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 304.696,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44832,
    "c": 0.18501,
    "h": 331.9
  },
  "luminance": 0.07601
}

Semantic roles & 50–950 ramp

primary
#8A1781
secondary
#3FBE49
accent
#EE483A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1781

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

Preview Lab → · Contrast checker → · Palette generator →

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