#8A1D87#8A1D87

#8A1D87 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.184 H 329.3°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8A1D87
RGBrgb(138, 29, 135)
HSLhsl(302, 65%, 33%)
HSVhsv(302, 79%, 54%)
CMYKcmyk(0%, 79%, 2.2%, 45.9%)
CIE-LABlab(34.05, 56.22, -33.95)
CIE-LCHlch(34.05, 65.67, 328.87°)
OKLaboklab(45.59% 0.1584 -0.094)
OKLCHoklch(45.59% 0.184 329.3)
XYZxyz(15.2937, 8.0325, 23.6619)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D87 #1D8A20
analogous
#561D8A #8A1D87 #8A1D51
triadic
#8A1D87 #878A1D #1D878A
tetradic
#8A1D87 #8A561D #1D8A20 #1D518A
square
#8A1D87 #8A561D #1D8A20 #1D518A
split-complementary
#8A1D87 #518A1D #1D8A56
monochromatic
#250824 #571256 #8A1D87 #BD28B8 #D949D5

Accessibility & contrast

On white

8.06
#8A1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8A1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D87
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D87#FFFFFF#000000##FFFFFF
##8A1D871.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1d87;
/* rgb */ color: rgb(138, 29, 135);
/* oklch */ color: oklch(45.6% 0.184 329.3);
Tailwind
colors: {
  custom: {
    50: '#b067aa',
    500: '#8a1d87',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d87;
$custom-light: #b067aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d87",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 301.651,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45592,
    "c": 0.18417,
    "h": 329.3
  },
  "luminance": 0.08031
}

Semantic roles & 50–950 ramp

primary
#8A1D87
secondary
#48BB4B
accent
#E84440
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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