#8A1C7C#8A1C7C

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

Color values

HEX#8A1C7C
RGBrgb(138, 28, 124)
HSLhsl(308, 66%, 33%)
HSVhsv(308, 80%, 54%)
CMYKcmyk(0%, 79.7%, 10.1%, 45.9%)
CIE-LABlab(33.33, 54.75, -28.23)
CIE-LCHlch(33.33, 61.60, 332.73°)
OKLaboklab(44.88% 0.1591 -0.0774)
OKLCHoklch(44.88% 0.177 334.1)
XYZxyz(14.5347, 7.6903, 19.7838)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C7C #1C8A2A
analogous
#611C8A #8A1C7C #8A1C45
triadic
#8A1C7C #7C8A1C #1C7C8A
tetradic
#8A1C7C #8A611C #1C8A2A #1C458A
square
#8A1C7C #8A611C #1C8A2A #1C458A
split-complementary
#8A1C7C #458A1C #1C8A61
monochromatic
#240721 #57124E #8A1C7C #BD26AA #DA47C7

Accessibility & contrast

On white

8.27
#8A1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1C7C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C7C#FFFFFF#000000##FFFFFF
##8A1C7C1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447F
Deuteranopia (green-blind)
#445479
Tritanopia (blue-blind)
#91274B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1c7c;
/* rgb */ color: rgb(138, 28, 124);
/* oklch */ color: oklch(44.9% 0.177 334.1);
Tailwind
colors: {
  custom: {
    50: '#b066a2',
    500: '#8a1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c7c;
$custom-light: #b066a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c7c",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 307.636,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44877,
    "c": 0.17689,
    "h": 334.1
  },
  "luminance": 0.07689
}

Semantic roles & 50–950 ramp

primary
#8A1C7C
secondary
#46BB55
accent
#E9543F
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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