#8A1787#8A1787

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

Color values

HEX#8A1787
RGBrgb(138, 23, 135)
HSLhsl(302, 71%, 32%)
HSVhsv(302, 83%, 54%)
CMYKcmyk(0%, 83.3%, 2.2%, 45.9%)
CIE-LABlab(33.49, 57.84, -34.84)
CIE-LCHlch(33.49, 67.52, 328.94°)
OKLaboklab(45.2% 0.163 -0.0965)
OKLCHoklch(45.2% 0.189 329.4)
XYZxyz(15.1607, 7.7665, 23.6176)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1787 #178A1A
analogous
#54178A #8A1787 #8A174E
triadic
#8A1787 #878A17 #17878A
tetradic
#8A1787 #8A5417 #178A1A #174E8A
square
#8A1787 #8A5417 #178A1A #174E8A
split-complementary
#8A1787 #4E8A17 #178A54
monochromatic
#210620 #560E54 #8A1787 #BE20BA #DF3DDA

Accessibility & contrast

On white

8.23
#8A1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1787
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1787#FFFFFF#000000##FFFFFF
##8A17871.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#3C5484
Tritanopia (blue-blind)
#8F2B50
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1787;
/* rgb */ color: rgb(138, 23, 135);
/* oklch */ color: oklch(45.2% 0.189 329.4);
Tailwind
colors: {
  custom: {
    50: '#b065aa',
    500: '#8a1787',
    950: '#000000',
  },
}
SCSS
$custom: #8a1787;
$custom-light: #b065aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1787",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 301.565,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45195,
    "c": 0.18944,
    "h": 329.4
  },
  "luminance": 0.07765
}

Semantic roles & 50–950 ramp

primary
#8A1787
secondary
#3FBE42
accent
#EE3E3A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A1787

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

Preview Lab → · Contrast checker → · Palette generator →

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