#8A1B81#8A1B81

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

Color values

HEX#8A1B81
RGBrgb(138, 27, 129)
HSLhsl(305, 67%, 32%)
HSVhsv(305, 80%, 54%)
CMYKcmyk(0%, 80.4%, 6.5%, 45.9%)
CIE-LABlab(33.51, 55.82, -31.08)
CIE-LCHlch(33.51, 63.89, 330.89°)
OKLaboklab(45.09% 0.1601 -0.0856)
OKLCHoklch(45.09% 0.182 331.9)
XYZxyz(14.8356, 7.7734, 21.4837)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B81 #1B8A24
analogous
#5C1B8A #8A1B81 #8A1B49
triadic
#8A1B81 #818A1B #1B818A
tetradic
#8A1B81 #8A5C1B #1B8A24 #1B498A
square
#8A1B81 #8A5C1B #1B8A24 #1B498A
split-complementary
#8A1B81 #498A1B #1B8A5C
monochromatic
#240721 #571151 #8A1B81 #BD25B1 #DB45CE

Accessibility & contrast

On white

8.22
#8A1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B81
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B81#FFFFFF#000000##FFFFFF
##8A1B811.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104584
Deuteranopia (green-blind)
#41547E
Tritanopia (blue-blind)
#902A4E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1b81;
/* rgb */ color: rgb(138, 27, 129);
/* oklch */ color: oklch(45.1% 0.182 331.9);
Tailwind
colors: {
  custom: {
    50: '#b066a6',
    500: '#8a1b81',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b81;
$custom-light: #b066a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b81",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 304.865,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45093,
    "c": 0.18151,
    "h": 331.9
  },
  "luminance": 0.07772
}

Semantic roles & 50–950 ramp

primary
#8A1B81
secondary
#45BC4E
accent
#EA4C3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1B81

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

Preview Lab → · Contrast checker → · Palette generator →

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