#8A1887#8A1887

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

Color values

HEX#8A1887
RGBrgb(138, 24, 135)
HSLhsl(302, 70%, 32%)
HSVhsv(302, 83%, 54%)
CMYKcmyk(0%, 82.6%, 2.2%, 45.9%)
CIE-LABlab(33.58, 57.59, -34.70)
CIE-LCHlch(33.58, 67.23, 328.93°)
OKLaboklab(45.26% 0.1623 -0.0961)
OKLCHoklch(45.26% 0.189 329.4)
XYZxyz(15.1809, 7.8070, 23.6243)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1887 #188A1B
analogous
#54188A #8A1887 #8A184E
triadic
#8A1887 #878A18 #18878A
tetradic
#8A1887 #8A5418 #188A1B #184E8A
square
#8A1887 #8A5418 #188A1B #184E8A
split-complementary
#8A1887 #4E8A18 #188A54
monochromatic
#220621 #560F54 #8A1887 #BE21BA #DE3FD9

Accessibility & contrast

On white

8.20
#8A1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1887
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1887#FFFFFF#000000##FFFFFF
##8A18871.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1887;
/* rgb */ color: rgb(138, 24, 135);
/* oklch */ color: oklch(45.3% 0.189 329.4);
Tailwind
colors: {
  custom: {
    50: '#b065aa',
    500: '#8a1887',
    950: '#000000',
  },
}
SCSS
$custom: #8a1887;
$custom-light: #b065aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1887",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 301.579,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45256,
    "c": 0.18862,
    "h": 329.4
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#8A1887
secondary
#40BD44
accent
#ED3F3B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A1887

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

Preview Lab → · Contrast checker → · Palette generator →

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