#8A1771#8A1771

#8A1771 is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.9% C 0.174 H 339.0°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#8A1771
RGBrgb(138, 23, 113)
HSLhsl(313, 71%, 32%)
HSVhsv(313, 83%, 54%)
CMYKcmyk(0%, 83.3%, 18.1%, 45.9%)
CIE-LABlab(32.28, 54.49, -22.92)
CIE-LCHlch(32.28, 59.12, 337.18°)
OKLaboklab(43.94% 0.1623 -0.0622)
OKLCHoklch(43.94% 0.174 339)
XYZxyz(13.7686, 7.2097, 16.2861)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1771 #178A30
analogous
#6A178A #8A1771 #8A1738
triadic
#8A1771 #718A17 #17718A
tetradic
#8A1771 #8A6A17 #178A30 #17388A
square
#8A1771 #8A6A17 #178A30 #17388A
split-complementary
#8A1771 #388A17 #178A6A
monochromatic
#21061B #560E46 #8A1771 #BE209C #DF3DBB

Accessibility & contrast

On white

8.60
#8A1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#8A1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1771
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1771#FFFFFF#000000##FFFFFF
##8A17711.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4173
Deuteranopia (green-blind)
#47526E
Tritanopia (blue-blind)
#921D44
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1771;
/* rgb */ color: rgb(138, 23, 113);
/* oklch */ color: oklch(43.9% 0.174 339.0);
Tailwind
colors: {
  custom: {
    50: '#b0649a',
    500: '#8a1771',
    950: '#000000',
  },
}
SCSS
$custom: #8a1771;
$custom-light: #b0649a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1771",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 313.043,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43937,
    "c": 0.17381,
    "h": 339
  },
  "luminance": 0.07208
}

Semantic roles & 50–950 ramp

primary
#8A1771
secondary
#3FBE5B
accent
#EE613A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1771

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

Preview Lab → · Contrast checker → · Palette generator →

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