#8A1D7D#8A1D7D

#8A1D7D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.177 H 333.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#8A1D7D
RGBrgb(138, 29, 125)
HSLhsl(307, 65%, 33%)
HSVhsv(307, 79%, 54%)
CMYKcmyk(0%, 79%, 9.4%, 45.9%)
CIE-LABlab(33.49, 54.61, -28.61)
CIE-LCHlch(33.49, 61.65, 332.35°)
OKLaboklab(45.01% 0.1582 -0.0785)
OKLCHoklch(45.01% 0.177 333.6)
XYZxyz(14.6224, 7.7640, 20.1265)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D7D #1D8A2A
analogous
#601D8A #8A1D7D #8A1D46
triadic
#8A1D7D #7D8A1D #1D7D8A
tetradic
#8A1D7D #8A601D #1D8A2A #1D468A
square
#8A1D7D #8A601D #1D8A2A #1D468A
split-complementary
#8A1D7D #468A1D #1D8A60
monochromatic
#250821 #57124F #8A1D7D #BD28AB #D949C8

Accessibility & contrast

On white

8.23
#8A1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D7D
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D7D#FFFFFF#000000##FFFFFF
##8A1D7D1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194580
Deuteranopia (green-blind)
#44547A
Tritanopia (blue-blind)
#91294C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1d7d;
/* rgb */ color: rgb(138, 29, 125);
/* oklch */ color: oklch(45.0% 0.177 333.6);
Tailwind
colors: {
  custom: {
    50: '#b067a3',
    500: '#8a1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d7d;
$custom-light: #b067a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d7d",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 307.156,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45007,
    "c": 0.17663,
    "h": 333.6
  },
  "luminance": 0.07763
}

Semantic roles & 50–950 ramp

primary
#8A1D7D
secondary
#48BB56
accent
#E85440
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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