#8A1C87#8A1C87

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

Color values

HEX#8A1C87
RGBrgb(138, 28, 135)
HSLhsl(302, 66%, 33%)
HSVhsv(302, 80%, 54%)
CMYKcmyk(0%, 79.7%, 2.2%, 45.9%)
CIE-LABlab(33.95, 56.51, -34.11)
CIE-LCHlch(33.95, 66.01, 328.88°)
OKLaboklab(45.52% 0.1592 -0.0944)
OKLCHoklch(45.52% 0.185 329.3)
XYZxyz(15.2696, 7.9842, 23.6539)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C87 #1C8A1F
analogous
#561C8A #8A1C87 #8A1C50
triadic
#8A1C87 #878A1C #1C878A
tetradic
#8A1C87 #8A561C #1C8A1F #1C508A
square
#8A1C87 #8A561C #1C8A1F #1C508A
split-complementary
#8A1C87 #508A1C #1C8A56
monochromatic
#240723 #571255 #8A1C87 #BD26B9 #DA47D6

Accessibility & contrast

On white

8.09
#8A1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8A1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C87
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C87#FFFFFF#000000##FFFFFF
##8A1C871.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1c87;
/* rgb */ color: rgb(138, 28, 135);
/* oklch */ color: oklch(45.5% 0.185 329.3);
Tailwind
colors: {
  custom: {
    50: '#b067aa',
    500: '#8a1c87',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c87;
$custom-light: #b067aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c87",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 301.636,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45521,
    "c": 0.18511,
    "h": 329.3
  },
  "luminance": 0.07983
}

Semantic roles & 50–950 ramp

primary
#8A1C87
secondary
#46BB4A
accent
#E9433F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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