#8A1C8A#8A1C8A

#8A1C8A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.187 H 328.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#8A1C8A
RGBrgb(138, 28, 138)
HSLhsl(300, 66%, 33%)
HSVhsv(300, 80%, 54%)
CMYKcmyk(0%, 79.7%, 0%, 45.9%)
CIE-LABlab(34.13, 57.01, -35.68)
CIE-LCHlch(34.13, 67.25, 327.96°)
OKLaboklab(45.71% 0.1591 -0.099)
OKLCHoklch(45.71% 0.187 328.1)
XYZxyz(15.4837, 8.0699, 24.7820)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C8A #1C8A1C
analogous
#531C8A #8A1C8A #8A1C53
triadic
#8A1C8A #8A8A1C #1C8A8A
tetradic
#8A1C8A #8A531C #1C8A1C #1C538A
square
#8A1C8A #8A531C #1C8A1C #1C538A
split-complementary
#8A1C8A #538A1C #1C8A53
monochromatic
#240724 #571257 #8A1C8A #BD26BD #DA47DA

Accessibility & contrast

On white

8.03
#8A1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1C8A
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C8A#FFFFFF#000000##FFFFFF
##8A1C8A1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#3C5587
Tritanopia (blue-blind)
#8F2F53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1c8a;
/* rgb */ color: rgb(138, 28, 138);
/* oklch */ color: oklch(45.7% 0.187 328.1);
Tailwind
colors: {
  custom: {
    50: '#b067ac',
    500: '#8a1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c8a;
$custom-light: #b067ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c8a",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.18742,
    "h": 328.1
  },
  "luminance": 0.08069
}

Semantic roles & 50–950 ramp

primary
#8A1C8A
secondary
#46BB46
accent
#E93F3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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