#8A1D7C#8A1D7C

#8A1D7C is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.176 H 334.1°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#8A1D7C
RGBrgb(138, 29, 124)
HSLhsl(308, 65%, 33%)
HSVhsv(308, 79%, 54%)
CMYKcmyk(0%, 79%, 10.1%, 45.9%)
CIE-LABlab(33.43, 54.46, -28.07)
CIE-LCHlch(33.43, 61.26, 332.73°)
OKLaboklab(44.95% 0.1582 -0.0769)
OKLCHoklch(44.95% 0.176 334.1)
XYZxyz(14.5588, 7.7385, 19.7918)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D7C #1D8A2B
analogous
#611D8A #8A1D7C #8A1D46
triadic
#8A1D7C #7C8A1D #1D7C8A
tetradic
#8A1D7C #8A611D #1D8A2B #1D468A
square
#8A1D7C #8A611D #1D8A2B #1D468A
split-complementary
#8A1D7C #468A1D #1D8A61
monochromatic
#250821 #57124F #8A1D7C #BD28A9 #D949C6

Accessibility & contrast

On white

8.24
#8A1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1D7C
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D7C#FFFFFF#000000##FFFFFF
##8A1D7C1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A457F
Deuteranopia (green-blind)
#445479
Tritanopia (blue-blind)
#91284B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1d7c;
/* rgb */ color: rgb(138, 29, 124);
/* oklch */ color: oklch(45.0% 0.176 334.1);
Tailwind
colors: {
  custom: {
    50: '#b067a2',
    500: '#8a1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d7c;
$custom-light: #b067a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d7c",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 307.706,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4495,
    "c": 0.1759,
    "h": 334.1
  },
  "luminance": 0.07737
}

Semantic roles & 50–950 ramp

primary
#8A1D7C
secondary
#48BB57
accent
#E85540
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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