#A12871#A12871

#A12871 is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.1% C 0.172 H 348.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#A12871
RGBrgb(161, 40, 113)
HSLhsl(324, 60%, 39%)
HSVhsv(324, 75%, 63%)
CMYKcmyk(0%, 75.2%, 29.8%, 36.9%)
CIE-LABlab(38.36, 55.15, -13.20)
CIE-LCHlch(38.36, 56.71, 346.54°)
OKLaboklab(49.13% 0.1681 -0.0347)
OKLCHoklch(49.13% 0.172 348.3)
XYZxyz(18.4383, 10.2890, 16.6346)
Luminance0.1029 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12871 #28A158
analogous
#9528A1 #A12871 #A12834
triadic
#A12871 #71A128 #2871A1
tetradic
#A12871 #A19528 #28A158 #2834A1
square
#A12871 #A19528 #28A158 #2834A1
split-complementary
#A12871 #34A128 #28A195
monochromatic
#3F102C #701C4F #A12871 #CE3993 #DA6AAD

Accessibility & contrast

On white

6.87
#A12871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#A12871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12871
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12871#FFFFFF#000000##FFFFFF
##A128711.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4D73
Deuteranopia (green-blind)
#5E626E
Tritanopia (blue-blind)
#AD2249
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #a12871;
/* rgb */ color: rgb(161, 40, 113);
/* oklch */ color: oklch(49.1% 0.172 348.3);
Tailwind
colors: {
  custom: {
    50: '#c16e99',
    500: '#a12871',
    950: '#000000',
  },
}
SCSS
$custom: #a12871;
$custom-light: #c16e99;
$custom-dark: #000000;
JSON
{
  "hex": "#a12871",
  "rgb": {
    "r": 161,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 323.802,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49131,
    "c": 0.17166,
    "h": 348.3
  },
  "luminance": 0.10287
}

Semantic roles & 50–950 ramp

primary
#A12871
secondary
#65C089
accent
#E38344
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #A12871

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

Preview Lab → · Contrast checker → · Palette generator →

#A12871 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva