#8A1C82#8A1C82

#8A1C82 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.181 H 331.4°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#8A1C82
RGBrgb(138, 28, 130)
HSLhsl(304, 66%, 33%)
HSVhsv(304, 80%, 54%)
CMYKcmyk(0%, 79.7%, 5.8%, 45.9%)
CIE-LABlab(33.66, 55.70, -31.46)
CIE-LCHlch(33.66, 63.97, 330.54°)
OKLaboklab(45.22% 0.1592 -0.0867)
OKLCHoklch(45.22% 0.181 331.4)
XYZxyz(14.9258, 7.8467, 21.8432)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C82 #1C8A24
analogous
#5B1C8A #8A1C82 #8A1C4B
triadic
#8A1C82 #828A1C #1C828A
tetradic
#8A1C82 #8A5B1C #1C8A24 #1C4B8A
square
#8A1C82 #8A5B1C #1C8A24 #1C4B8A
split-complementary
#8A1C82 #4B8A1C #1C8A5B
monochromatic
#240722 #571252 #8A1C82 #BD26B2 #DA47CF

Accessibility & contrast

On white

8.17
#8A1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8A1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C82
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C82#FFFFFF#000000##FFFFFF
##8A1C821.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104685
Deuteranopia (green-blind)
#41547F
Tritanopia (blue-blind)
#902B4E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1c82;
/* rgb */ color: rgb(138, 28, 130);
/* oklch */ color: oklch(45.2% 0.181 331.4);
Tailwind
colors: {
  custom: {
    50: '#b066a7',
    500: '#8a1c82',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c82;
$custom-light: #b066a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c82",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 304.364,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45222,
    "c": 0.18132,
    "h": 331.4
  },
  "luminance": 0.07845
}

Semantic roles & 50–950 ramp

primary
#8A1C82
secondary
#46BB4F
accent
#E94B3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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