#8A1D8A#8A1D8A

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

Color values

HEX#8A1D8A
RGBrgb(138, 29, 138)
HSLhsl(300, 65%, 33%)
HSVhsv(300, 79%, 54%)
CMYKcmyk(0%, 79%, 0%, 45.9%)
CIE-LABlab(34.23, 56.72, -35.52)
CIE-LCHlch(34.23, 66.93, 327.94°)
OKLaboklab(45.78% 0.1583 -0.0985)
OKLCHoklch(45.78% 0.186 328.1)
XYZxyz(15.5079, 8.1181, 24.7900)
Luminance0.0812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D8A #1D8A1D
analogous
#531D8A #8A1D8A #8A1D53
triadic
#8A1D8A #8A8A1D #1D8A8A
tetradic
#8A1D8A #8A531D #1D8A1D #1D538A
square
#8A1D8A #8A531D #1D8A1D #1D538A
split-complementary
#8A1D8A #538A1D #1D8A53
monochromatic
#250825 #571257 #8A1D8A #BD28BD #D949D9

Accessibility & contrast

On white

8.00
#8A1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D8A
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D8A#FFFFFF#000000##FFFFFF
##8A1D8A1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488D
Deuteranopia (green-blind)
#3D5587
Tritanopia (blue-blind)
#8F3053
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1d8a;
/* rgb */ color: rgb(138, 29, 138);
/* oklch */ color: oklch(45.8% 0.186 328.1);
Tailwind
colors: {
  custom: {
    50: '#b067ac',
    500: '#8a1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d8a;
$custom-light: #b067ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d8a",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45775,
    "c": 0.18648,
    "h": 328.1
  },
  "luminance": 0.08117
}

Semantic roles & 50–950 ramp

primary
#8A1D8A
secondary
#48BB48
accent
#E84040
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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