#8A1871#8A1871

#8A1871 is a dark, vivid pink. Relative luminance 0.072; OKLCH L 44.0% C 0.173 H 339.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#8A1871
RGBrgb(138, 24, 113)
HSLhsl(313, 70%, 32%)
HSVhsv(313, 83%, 54%)
CMYKcmyk(0%, 82.6%, 18.1%, 45.9%)
CIE-LABlab(32.37, 54.23, -22.78)
CIE-LCHlch(32.37, 58.83, 337.21°)
OKLaboklab(44% 0.1615 -0.0618)
OKLCHoklch(44% 0.173 339.1)
XYZxyz(13.7889, 7.2502, 16.2928)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1871 #188A31
analogous
#6A188A #8A1871 #8A1838
triadic
#8A1871 #718A18 #18718A
tetradic
#8A1871 #8A6A18 #188A31 #18388A
square
#8A1871 #8A6A18 #188A31 #18388A
split-complementary
#8A1871 #388A18 #188A6A
monochromatic
#22061C #560F46 #8A1871 #BE219C #DE3FBB

Accessibility & contrast

On white

8.57
#8A1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#8A1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1871
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1871#FFFFFF#000000##FFFFFF
##8A18711.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204173
Deuteranopia (green-blind)
#47526E
Tritanopia (blue-blind)
#921E44
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1871;
/* rgb */ color: rgb(138, 24, 113);
/* oklch */ color: oklch(44.0% 0.173 339.1);
Tailwind
colors: {
  custom: {
    50: '#b0649a',
    500: '#8a1871',
    950: '#000000',
  },
}
SCSS
$custom: #8a1871;
$custom-light: #b0649a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1871",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 313.158,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44002,
    "c": 0.17293,
    "h": 339.1
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#8A1871
secondary
#40BD5C
accent
#ED623B
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1871

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

Preview Lab → · Contrast checker → · Palette generator →

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