#8A2871#8A2871

#8A2871 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.3% C 0.155 H 339.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8A2871
RGBrgb(138, 40, 113)
HSLhsl(315, 55%, 35%)
HSVhsv(315, 71%, 54%)
CMYKcmyk(0%, 71%, 18.1%, 45.9%)
CIE-LABlab(34.22, 48.97, -19.91)
CIE-LCHlch(34.22, 52.86, 337.88°)
OKLaboklab(45.34% 0.1456 -0.0537)
OKLCHoklch(45.34% 0.155 339.8)
XYZxyz(14.2210, 8.1145, 16.4369)
Luminance0.0811 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2871 #288A41
analogous
#72288A #8A2871 #8A2840
triadic
#8A2871 #718A28 #28718A
tetradic
#8A2871 #8A7228 #288A41 #28408A
square
#8A2871 #8A7228 #288A41 #28408A
split-complementary
#8A2871 #408A28 #288A72
monochromatic
#2B0C23 #5B1A4A #8A2871 #B93698 #D05DB2

Accessibility & contrast

On white

8.01
#8A2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2871
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2871#FFFFFF#000000##FFFFFF
##8A28711.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4773
Deuteranopia (green-blind)
#4D566F
Tritanopia (blue-blind)
#922B49
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a2871;
/* rgb */ color: rgb(138, 40, 113);
/* oklch */ color: oklch(45.3% 0.155 339.8);
Tailwind
colors: {
  custom: {
    50: '#af6b9a',
    500: '#8a2871',
    950: '#000000',
  },
}
SCSS
$custom: #8a2871;
$custom-light: #af6b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2871",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 315.306,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4534,
    "c": 0.15521,
    "h": 339.8
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#8A2871
secondary
#59B570
accent
#DE6F49
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2871

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

Preview Lab → · Contrast checker → · Palette generator →

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