#8A1D7A#8A1D7A

#8A1D7A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.174 H 335.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#8A1D7A
RGBrgb(138, 29, 122)
HSLhsl(309, 65%, 33%)
HSVhsv(309, 79%, 54%)
CMYKcmyk(0%, 79%, 11.6%, 45.9%)
CIE-LABlab(33.33, 54.15, -26.98)
CIE-LCHlch(33.33, 60.49, 333.52°)
OKLaboklab(44.84% 0.1581 -0.0738)
OKLCHoklch(44.84% 0.174 335)
XYZxyz(14.4336, 7.6885, 19.1324)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D7A #1D8A2D
analogous
#631D8A #8A1D7A #8A1D44
triadic
#8A1D7A #7A8A1D #1D7A8A
tetradic
#8A1D7A #8A631D #1D8A2D #1D448A
square
#8A1D7A #8A631D #1D8A2D #1D448A
split-complementary
#8A1D7A #448A1D #1D8A63
monochromatic
#250821 #57124D #8A1D7A #BD28A7 #D949C4

Accessibility & contrast

On white

8.28
#8A1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A1D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D7A
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D7A#FFFFFF#000000##FFFFFF
##8A1D7A1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447C
Deuteranopia (green-blind)
#455477
Tritanopia (blue-blind)
#91274A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1d7a;
/* rgb */ color: rgb(138, 29, 122);
/* oklch */ color: oklch(44.8% 0.174 335.0);
Tailwind
colors: {
  custom: {
    50: '#b066a1',
    500: '#8a1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d7a;
$custom-light: #b066a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d7a",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 308.807,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44839,
    "c": 0.17444,
    "h": 335
  },
  "luminance": 0.07687
}

Semantic roles & 50–950 ramp

primary
#8A1D7A
secondary
#48BB59
accent
#E85840
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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