#8A4871#8A4871

#8A4871 is a mid, moderate pink. Relative luminance 0.112; OKLCH L 49.6% C 0.104 H 343.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#8A4871
RGBrgb(138, 72, 113)
HSLhsl(323, 31%, 41%)
HSVhsv(323, 48%, 54%)
CMYKcmyk(0%, 47.8%, 18.1%, 45.9%)
CIE-LABlab(39.97, 33.56, -11.11)
CIE-LCHlch(39.97, 35.35, 341.69°)
OKLaboklab(49.59% 0.0995 -0.0294)
OKLCHoklch(49.59% 0.104 343.5)
XYZxyz(15.7795, 11.2314, 16.9564)
Luminance0.1123 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4871 #488A61
analogous
#82488A #8A4871 #8A4850
triadic
#8A4871 #718A48 #48718A
tetradic
#8A4871 #8A8248 #488A61 #48508A
square
#8A4871 #8A8248 #488A61 #48508A
split-complementary
#8A4871 #508A48 #488A82
monochromatic
#3A1E2F #623350 #8A4871 #AD6291 #C28AAD

Accessibility & contrast

On white

6.47
#8A4871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A4871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4871
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4871#FFFFFF#000000##FFFFFF
##8A48711.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5772
Deuteranopia (green-blind)
#5E626F
Tritanopia (blue-blind)
#914857
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a4871;
/* rgb */ color: rgb(138, 72, 113);
/* oklch */ color: oklch(49.6% 0.104 343.5);
Tailwind
colors: {
  custom: {
    50: '#ae7d99',
    500: '#8a4871',
    950: '#000000',
  },
}
SCSS
$custom: #8a4871;
$custom-light: #ae7d99;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4871",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 113
  },
  "hsl": {
    "h": 322.727,
    "s": 31.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4959,
    "c": 0.10376,
    "h": 343.5
  },
  "luminance": 0.1123
}

Semantic roles & 50–950 ramp

primary
#8A4871
secondary
#80AE91
accent
#C88760
background
#FAF7F9
surface
#F5EEF2
border
#CFC9CC
text
#100A0E
muted
#7F7C7E

Preview Lab

Preview with #8A4871

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

Preview Lab → · Contrast checker → · Palette generator →

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