#8A1A7C#8A1A7C

#8A1A7C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.179 H 334.0°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#8A1A7C
RGBrgb(138, 26, 124)
HSLhsl(308, 68%, 32%)
HSVhsv(308, 81%, 54%)
CMYKcmyk(0%, 81.2%, 10.1%, 45.9%)
CIE-LABlab(33.13, 55.32, -28.54)
CIE-LCHlch(33.13, 62.25, 332.71°)
OKLaboklab(44.74% 0.1607 -0.0783)
OKLCHoklch(44.74% 0.179 334)
XYZxyz(14.4889, 7.5986, 19.7685)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A7C #1A8A28
analogous
#601A8A #8A1A7C #8A1A44
triadic
#8A1A7C #7C8A1A #1A7C8A
tetradic
#8A1A7C #8A601A #1A8A28 #1A448A
square
#8A1A7C #8A601A #1A8A28 #1A448A
split-complementary
#8A1A7C #448A1A #1A8A60
monochromatic
#23071F #57104E #8A1A7C #BD24AA #DC43C8

Accessibility & contrast

On white

8.34
#8A1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8A1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A7C
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A7C#FFFFFF#000000##FFFFFF
##8A1A7C1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16447F
Deuteranopia (green-blind)
#435479
Tritanopia (blue-blind)
#91264B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1a7c;
/* rgb */ color: rgb(138, 26, 124);
/* oklch */ color: oklch(44.7% 0.179 334.0);
Tailwind
colors: {
  custom: {
    50: '#b065a2',
    500: '#8a1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a7c;
$custom-light: #b065a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a7c",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 307.5,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44736,
    "c": 0.17877,
    "h": 334
  },
  "luminance": 0.07597
}

Semantic roles & 50–950 ramp

primary
#8A1A7C
secondary
#43BD52
accent
#EB523D
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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