#8A1789#8A1789

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

Color values

HEX#8A1789
RGBrgb(138, 23, 137)
HSLhsl(301, 71%, 32%)
HSVhsv(301, 83%, 54%)
CMYKcmyk(0%, 83.3%, 0.7%, 45.9%)
CIE-LABlab(33.61, 58.16, -35.89)
CIE-LCHlch(33.61, 68.34, 328.33°)
OKLaboklab(45.32% 0.1629 -0.0995)
OKLCHoklch(45.32% 0.191 328.6)
XYZxyz(15.3028, 7.8234, 24.3661)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1789 #178A18
analogous
#52178A #8A1789 #8A1750
triadic
#8A1789 #898A17 #17898A
tetradic
#8A1789 #8A5217 #178A18 #17508A
square
#8A1789 #8A5217 #178A18 #17508A
split-complementary
#8A1789 #508A17 #178A52
monochromatic
#210621 #560E55 #8A1789 #BE20BD #DF3DDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A1789#FFFFFF#000000##FFFFFF
##8A17891.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)
#00468C
Deuteranopia (green-blind)
#3B5486
Tritanopia (blue-blind)
#8F2C51
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1789;
/* rgb */ color: rgb(138, 23, 137);
/* oklch */ color: oklch(45.3% 0.191 328.6);
Tailwind
colors: {
  custom: {
    50: '#b065ac',
    500: '#8a1789',
    950: '#000000',
  },
}
SCSS
$custom: #8a1789;
$custom-light: #b065ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1789",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 300.522,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.19094,
    "h": 328.6
  },
  "luminance": 0.07822
}

Semantic roles & 50–950 ramp

primary
#8A1789
secondary
#3FBE40
accent
#EE3B3A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A1789

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

Preview Lab → · Contrast checker → · Palette generator →

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