#8A1B82#8A1B82

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

Color values

HEX#8A1B82
RGBrgb(138, 27, 130)
HSLhsl(304, 67%, 32%)
HSVhsv(304, 80%, 54%)
CMYKcmyk(0%, 80.4%, 5.8%, 45.9%)
CIE-LABlab(33.56, 55.98, -31.61)
CIE-LCHlch(33.56, 64.29, 330.55°)
OKLaboklab(45.15% 0.1601 -0.0872)
OKLCHoklch(45.15% 0.182 331.4)
XYZxyz(14.9024, 7.8001, 21.8355)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B82 #1B8A23
analogous
#5A1B8A #8A1B82 #8A1B4B
triadic
#8A1B82 #828A1B #1B828A
tetradic
#8A1B82 #8A5A1B #1B8A23 #1B4B8A
square
#8A1B82 #8A5A1B #1B8A23 #1B4B8A
split-complementary
#8A1B82 #4B8A1B #1B8A5A
monochromatic
#240722 #571152 #8A1B82 #BD25B2 #DB45D0

Accessibility & contrast

On white

8.20
#8A1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8A1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B82
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B82#FFFFFF#000000##FFFFFF
##8A1B821.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4585
Deuteranopia (green-blind)
#40547F
Tritanopia (blue-blind)
#902A4E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1b82;
/* rgb */ color: rgb(138, 27, 130);
/* oklch */ color: oklch(45.2% 0.182 331.4);
Tailwind
colors: {
  custom: {
    50: '#b066a7',
    500: '#8a1b82',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b82;
$custom-light: #b066a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b82",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 304.324,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45151,
    "c": 0.18225,
    "h": 331.4
  },
  "luminance": 0.07799
}

Semantic roles & 50–950 ramp

primary
#8A1B82
secondary
#45BC4D
accent
#EA4A3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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