#8A3871#8A3871

#8A3871 is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.2% C 0.132 H 341.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8A3871
RGBrgb(138, 56, 113)
HSLhsl(318, 42%, 38%)
HSVhsv(318, 59%, 54%)
CMYKcmyk(0%, 59.4%, 18.1%, 45.9%)
CIE-LABlab(36.79, 41.91, -15.94)
CIE-LCHlch(36.79, 44.84, 339.17°)
OKLaboklab(47.22% 0.1244 -0.0427)
OKLCHoklch(47.22% 0.132 341)
XYZxyz(14.8763, 9.4251, 16.6553)
Luminance0.0942 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3871 #388A51
analogous
#7A388A #8A3871 #8A3848
triadic
#8A3871 #718A38 #38718A
tetradic
#8A3871 #8A7A38 #388A51 #38488A
square
#8A3871 #8A7A38 #388A51 #38488A
split-complementary
#8A3871 #488A38 #388A7A
monochromatic
#33152A #5E264D #8A3871 #B54A95 #C775AE

Accessibility & contrast

On white

7.28
#8A3871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A3871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3871
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3871#FFFFFF#000000##FFFFFF
##8A38711.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D4E73
Deuteranopia (green-blind)
#555B6F
Tritanopia (blue-blind)
#92394F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a3871;
/* rgb */ color: rgb(138, 56, 113);
/* oklch */ color: oklch(47.2% 0.132 341.0);
Tailwind
colors: {
  custom: {
    50: '#af739a',
    500: '#8a3871',
    950: '#000000',
  },
}
SCSS
$custom: #8a3871;
$custom-light: #af739a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3871",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 318.293,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47224,
    "c": 0.13151,
    "h": 341
  },
  "luminance": 0.09424
}

Semantic roles & 50–950 ramp

primary
#8A3871
secondary
#6EB082
accent
#D27C56
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3871

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

Preview Lab → · Contrast checker → · Palette generator →

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