#8A1B84#8A1B84

#8A1B84 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.184 H 330.6°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#8A1B84
RGBrgb(138, 27, 132)
HSLhsl(303, 67%, 32%)
HSVhsv(303, 80%, 54%)
CMYKcmyk(0%, 80.4%, 4.3%, 45.9%)
CIE-LABlab(33.68, 56.30, -32.68)
CIE-LCHlch(33.68, 65.10, 329.87°)
OKLaboklab(45.27% 0.1601 -0.0902)
OKLCHoklch(45.27% 0.184 330.6)
XYZxyz(15.0380, 7.8543, 22.5493)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B84 #1B8A21
analogous
#581B8A #8A1B84 #8A1B4D
triadic
#8A1B84 #848A1B #1B848A
tetradic
#8A1B84 #8A581B #1B8A21 #1B4D8A
square
#8A1B84 #8A581B #1B8A21 #1B4D8A
split-complementary
#8A1B84 #4D8A1B #1B8A58
monochromatic
#240722 #571153 #8A1B84 #BD25B5 #DB45D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A1B84#FFFFFF#000000##FFFFFF
##8A1B841.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)
#0A4687
Deuteranopia (green-blind)
#3F5481
Tritanopia (blue-blind)
#902B4F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1b84;
/* rgb */ color: rgb(138, 27, 132);
/* oklch */ color: oklch(45.3% 0.184 330.6);
Tailwind
colors: {
  custom: {
    50: '#b066a8',
    500: '#8a1b84',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b84;
$custom-light: #b066a8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b84",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 303.243,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4527,
    "c": 0.18376,
    "h": 330.6
  },
  "luminance": 0.07853
}

Semantic roles & 50–950 ramp

primary
#8A1B84
secondary
#45BC4B
accent
#EA473E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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