#8A1C7A#8A1C7A

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

Color values

HEX#8A1C7A
RGBrgb(138, 28, 122)
HSLhsl(309, 66%, 33%)
HSVhsv(309, 80%, 54%)
CMYKcmyk(0%, 79.7%, 11.6%, 45.9%)
CIE-LABlab(33.22, 54.44, -27.14)
CIE-LCHlch(33.22, 60.83, 333.50°)
OKLaboklab(44.77% 0.1589 -0.0743)
OKLCHoklch(44.77% 0.175 335)
XYZxyz(14.4095, 7.6402, 19.1244)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C7A #1C8A2C
analogous
#631C8A #8A1C7A #8A1C43
triadic
#8A1C7A #7A8A1C #1C7A8A
tetradic
#8A1C7A #8A631C #1C8A2C #1C438A
square
#8A1C7A #8A631C #1C8A2C #1C438A
split-complementary
#8A1C7A #438A1C #1C8A63
monochromatic
#240720 #57124D #8A1C7A #BD26A7 #DA47C4

Accessibility & contrast

On white

8.31
#8A1C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8A1C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C7A
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C7A#FFFFFF#000000##FFFFFF
##8A1C7A1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1c7a;
/* rgb */ color: rgb(138, 28, 122);
/* oklch */ color: oklch(44.8% 0.175 335.0);
Tailwind
colors: {
  custom: {
    50: '#b066a1',
    500: '#8a1c7a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c7a;
$custom-light: #b066a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c7a",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 308.727,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44765,
    "c": 0.17543,
    "h": 335
  },
  "luminance": 0.07639
}

Semantic roles & 50–950 ramp

primary
#8A1C7A
secondary
#46BB57
accent
#E9573F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A1C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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