#8A1987#8A1987

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

Color values

HEX#8A1987
RGBrgb(138, 25, 135)
HSLhsl(302, 69%, 32%)
HSVhsv(302, 82%, 54%)
CMYKcmyk(0%, 81.9%, 2.2%, 45.9%)
CIE-LABlab(33.67, 57.33, -34.56)
CIE-LCHlch(33.67, 66.94, 328.92°)
OKLaboklab(45.32% 0.1616 -0.0957)
OKLCHoklch(45.32% 0.188 329.4)
XYZxyz(15.2019, 7.8490, 23.6313)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1987 #198A1C
analogous
#55198A #8A1987 #8A194F
triadic
#8A1987 #878A19 #19878A
tetradic
#8A1987 #8A5519 #198A1C #194F8A
square
#8A1987 #8A5519 #198A1C #194F8A
split-complementary
#8A1987 #4F8A19 #198A55
monochromatic
#220622 #561054 #8A1987 #BE22BA #DD41D8

Accessibility & contrast

On white

8.17
#8A1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8A1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1987
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1987#FFFFFF#000000##FFFFFF
##8A19871.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1987;
/* rgb */ color: rgb(138, 25, 135);
/* oklch */ color: oklch(45.3% 0.188 329.4);
Tailwind
colors: {
  custom: {
    50: '#b066aa',
    500: '#8a1987',
    950: '#000000',
  },
}
SCSS
$custom: #8a1987;
$custom-light: #b066aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1987",
  "rgb": {
    "r": 138,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 301.593,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.18779,
    "h": 329.4
  },
  "luminance": 0.07848
}

Semantic roles & 50–950 ramp

primary
#8A1987
secondary
#42BD45
accent
#EC403C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1987

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

Preview Lab → · Contrast checker → · Palette generator →

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