#8A1B80#8A1B80

#8A1B80 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.181 H 332.3°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#8A1B80
RGBrgb(138, 27, 128)
HSLhsl(305, 67%, 32%)
HSVhsv(305, 80%, 54%)
CMYKcmyk(0%, 80.4%, 7.2%, 45.9%)
CIE-LABlab(33.45, 55.66, -30.54)
CIE-LCHlch(33.45, 63.49, 331.25°)
OKLaboklab(45.03% 0.16 -0.0841)
OKLCHoklch(45.03% 0.181 332.3)
XYZxyz(14.7695, 7.7469, 21.1353)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B80 #1B8A25
analogous
#5C1B8A #8A1B80 #8A1B49
triadic
#8A1B80 #808A1B #1B808A
tetradic
#8A1B80 #8A5C1B #1B8A25 #1B498A
square
#8A1B80 #8A5C1B #1B8A25 #1B498A
split-complementary
#8A1B80 #498A1B #1B8A5C
monochromatic
#240721 #571151 #8A1B80 #BD25AF #DB45CD

Accessibility & contrast

On white

8.24
#8A1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1B80
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B80#FFFFFF#000000##FFFFFF
##8A1B801.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124583
Deuteranopia (green-blind)
#41547D
Tritanopia (blue-blind)
#90294D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1b80;
/* rgb */ color: rgb(138, 27, 128);
/* oklch */ color: oklch(45.0% 0.181 332.3);
Tailwind
colors: {
  custom: {
    50: '#b066a5',
    500: '#8a1b80',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b80;
$custom-light: #b066a5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b80",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 305.405,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45034,
    "c": 0.18078,
    "h": 332.3
  },
  "luminance": 0.07746
}

Semantic roles & 50–950 ramp

primary
#8A1B80
secondary
#45BC50
accent
#EA4D3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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