#8A1873#8A1873

#8A1873 is a dark, vivid pink. Relative luminance 0.073; OKLCH L 44.1% C 0.174 H 338.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#8A1873
RGBrgb(138, 24, 115)
HSLhsl(312, 70%, 32%)
HSVhsv(312, 83%, 54%)
CMYKcmyk(0%, 82.6%, 16.7%, 45.9%)
CIE-LABlab(32.47, 54.52, -23.90)
CIE-LCHlch(32.47, 59.53, 336.33°)
OKLaboklab(44.11% 0.1617 -0.0649)
OKLCHoklch(44.11% 0.174 338.1)
XYZxyz(13.9027, 7.2957, 16.8924)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1873 #188A2F
analogous
#68188A #8A1873 #8A183A
triadic
#8A1873 #738A18 #18738A
tetradic
#8A1873 #8A6818 #188A2F #183A8A
square
#8A1873 #8A6818 #188A2F #183A8A
split-complementary
#8A1873 #3A8A18 #188A68
monochromatic
#22061C #560F48 #8A1873 #BE219E #DE3FBE

Accessibility & contrast

On white

8.54
#8A1873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#8A1873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1873
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1873#FFFFFF#000000##FFFFFF
##8A18731.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4175
Deuteranopia (green-blind)
#475370
Tritanopia (blue-blind)
#921F45
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1873;
/* rgb */ color: rgb(138, 24, 115);
/* oklch */ color: oklch(44.1% 0.174 338.1);
Tailwind
colors: {
  custom: {
    50: '#b0649b',
    500: '#8a1873',
    950: '#000000',
  },
}
SCSS
$custom: #8a1873;
$custom-light: #b0649b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1873",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 312.105,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44108,
    "c": 0.17427,
    "h": 338.1
  },
  "luminance": 0.07294
}

Semantic roles & 50–950 ramp

primary
#8A1873
secondary
#40BD5A
accent
#ED5F3B
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1873

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

Preview Lab → · Contrast checker → · Palette generator →

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