#8A1B87#8A1B87

#8A1B87 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.186 H 329.3°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8A1B87
RGBrgb(138, 27, 135)
HSLhsl(302, 67%, 32%)
HSVhsv(302, 80%, 54%)
CMYKcmyk(0%, 80.4%, 2.2%, 45.9%)
CIE-LABlab(33.85, 56.79, -34.26)
CIE-LCHlch(33.85, 66.33, 328.90°)
OKLaboklab(45.45% 0.16 -0.0948)
OKLCHoklch(45.45% 0.186 329.3)
XYZxyz(15.2462, 7.9376, 23.6461)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B87 #1B8A1E
analogous
#561B8A #8A1B87 #8A1B4F
triadic
#8A1B87 #878A1B #1B878A
tetradic
#8A1B87 #8A561B #1B8A1E #1B4F8A
square
#8A1B87 #8A561B #1B8A1E #1B4F8A
split-complementary
#8A1B87 #4F8A1B #1B8A56
monochromatic
#240723 #571155 #8A1B87 #BD25B9 #DB45D7

Accessibility & contrast

On white

8.12
#8A1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8A1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B87
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B87#FFFFFF#000000##FFFFFF
##8A1B871.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02468A
Deuteranopia (green-blind)
#3E5584
Tritanopia (blue-blind)
#8F2D51
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1b87;
/* rgb */ color: rgb(138, 27, 135);
/* oklch */ color: oklch(45.5% 0.186 329.3);
Tailwind
colors: {
  custom: {
    50: '#b066aa',
    500: '#8a1b87',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b87;
$custom-light: #b066aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b87",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 301.622,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45451,
    "c": 0.18603,
    "h": 329.3
  },
  "luminance": 0.07936
}

Semantic roles & 50–950 ramp

primary
#8A1B87
secondary
#45BC48
accent
#EA423E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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