#8A1B83#8A1B83

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

Color values

HEX#8A1B83
RGBrgb(138, 27, 131)
HSLhsl(304, 67%, 32%)
HSVhsv(304, 80%, 54%)
CMYKcmyk(0%, 80.4%, 5.1%, 45.9%)
CIE-LABlab(33.62, 56.14, -32.15)
CIE-LCHlch(33.62, 64.69, 330.20°)
OKLaboklab(45.21% 0.1601 -0.0887)
OKLCHoklch(45.21% 0.183 331)
XYZxyz(14.9699, 7.8271, 22.1907)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B83 #1B8A22
analogous
#5A1B8A #8A1B83 #8A1B4B
triadic
#8A1B83 #838A1B #1B838A
tetradic
#8A1B83 #8A5A1B #1B8A22 #1B4B8A
square
#8A1B83 #8A5A1B #1B8A22 #1B4B8A
split-complementary
#8A1B83 #4B8A1B #1B8A5A
monochromatic
#240722 #571152 #8A1B83 #BD25B4 #DB45D1

Accessibility & contrast

On white

8.19
#8A1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1B83
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B83#FFFFFF#000000##FFFFFF
##8A1B831.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4586
Deuteranopia (green-blind)
#405480
Tritanopia (blue-blind)
#902B4F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1b83;
/* rgb */ color: rgb(138, 27, 131);
/* oklch */ color: oklch(45.2% 0.183 331.0);
Tailwind
colors: {
  custom: {
    50: '#b066a7',
    500: '#8a1b83',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b83;
$custom-light: #b066a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b83",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 303.784,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45211,
    "c": 0.18301,
    "h": 331
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

primary
#8A1B83
secondary
#45BC4C
accent
#EA493E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1B83

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

Preview Lab → · Contrast checker → · Palette generator →

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