#8A1A8C#8A1A8C

#8A1A8C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.191 H 327.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8A1A8C
RGBrgb(138, 26, 140)
HSLhsl(299, 69%, 33%)
HSVhsv(299, 81%, 55%)
CMYKcmyk(1.4%, 81.4%, 0%, 45.1%)
CIE-LABlab(34.06, 57.89, -37.03)
CIE-LCHlch(34.06, 68.72, 327.40°)
OKLaboklab(45.7% 0.1606 -0.1029)
OKLCHoklch(45.7% 0.191 327.4)
XYZxyz(15.5840, 8.0367, 25.5363)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A8C #1C8C1A
analogous
#511A8C #8A1A8C #8C1A55
triadic
#8A1A8C #8C8A1A #1A8C8A
tetradic
#8A1A8C #8C511A #1C8C1A #1A558C
square
#8A1A8C #8C511A #1C8C1A #1A558C
split-complementary
#8A1A8C #558C1A #1A8C51
monochromatic
#240725 #571058 #8A1A8C #BD24C0 #DA44DC

Accessibility & contrast

On white

8.05
#8A1A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8A1A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A8C
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A8C#FFFFFF#000000##FFFFFF
##8A1A8C1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3A5589
Tritanopia (blue-blind)
#8E2F54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1a8c;
/* rgb */ color: rgb(138, 26, 140);
/* oklch */ color: oklch(45.7% 0.191 327.4);
Tailwind
colors: {
  custom: {
    50: '#b066ae',
    500: '#8a1a8c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a8c;
$custom-light: #b066ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a8c",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 298.947,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45695,
    "c": 0.19073,
    "h": 327.4
  },
  "luminance": 0.08036
}

Semantic roles & 50–950 ramp

primary
#8A1A8C
secondary
#46BE44
accent
#EC3C3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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