#8A1B71#8A1B71

#8A1B71 is a dark, vivid pink. Relative luminance 0.074; OKLCH L 44.2% C 0.170 H 339.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#8A1B71
RGBrgb(138, 27, 113)
HSLhsl(314, 67%, 32%)
HSVhsv(314, 80%, 54%)
CMYKcmyk(0%, 80.4%, 18.1%, 45.9%)
CIE-LABlab(32.66, 53.40, -22.33)
CIE-LCHlch(32.66, 57.89, 337.31°)
OKLaboklab(44.21% 0.159 -0.0605)
OKLCHoklch(44.21% 0.17 339.2)
XYZxyz(13.8542, 7.3808, 16.3146)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B71 #1B8A34
analogous
#6C1B8A #8A1B71 #8A1B39
triadic
#8A1B71 #718A1B #1B718A
tetradic
#8A1B71 #8A6C1B #1B8A34 #1B398A
square
#8A1B71 #8A6C1B #1B8A34 #1B398A
split-complementary
#8A1B71 #398A1B #1B8A6C
monochromatic
#24071D #571147 #8A1B71 #BD259B #DB45B9

Accessibility & contrast

On white

8.48
#8A1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#8A1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B71
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B71#FFFFFF#000000##FFFFFF
##8A1B711.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234273
Deuteranopia (green-blind)
#48536F
Tritanopia (blue-blind)
#922045
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1b71;
/* rgb */ color: rgb(138, 27, 113);
/* oklch */ color: oklch(44.2% 0.170 339.2);
Tailwind
colors: {
  custom: {
    50: '#b0659a',
    500: '#8a1b71',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b71;
$custom-light: #b0659a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b71",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 313.514,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4421,
    "c": 0.17013,
    "h": 339.2
  },
  "luminance": 0.07379
}

Semantic roles & 50–950 ramp

primary
#8A1B71
secondary
#45BC60
accent
#EA643E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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