#A12987#A12987

#A12987 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.2% C 0.184 H 338.2°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#A12987
RGBrgb(161, 41, 135)
HSLhsl(313, 59%, 40%)
HSVhsv(313, 75%, 63%)
CMYKcmyk(0%, 74.5%, 16.1%, 36.9%)
CIE-LABlab(39.44, 57.78, -25.20)
CIE-LCHlch(39.44, 63.03, 336.44°)
OKLaboklab(50.23% 0.1711 -0.0683)
OKLCHoklch(50.23% 0.184 338.2)
XYZxyz(19.8645, 10.9141, 23.9774)
Luminance0.1091 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12987 #29A143
analogous
#7F29A1 #A12987 #A1294B
triadic
#A12987 #87A129 #2987A1
tetradic
#A12987 #A17F29 #29A143 #294BA1
square
#A12987 #A17F29 #29A143 #294BA1
split-complementary
#A12987 #4BA129 #29A17F
monochromatic
#3F1035 #701D5E #A12987 #CD3AAD #D96BC1

Accessibility & contrast

On white

6.60
#A12987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#A12987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12987
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12987#FFFFFF#000000##FFFFFF
##A129871.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F518A
Deuteranopia (green-blind)
#576484
Tritanopia (blue-blind)
#AA2F55
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a12987;
/* rgb */ color: rgb(161, 41, 135);
/* oklch */ color: oklch(50.2% 0.184 338.2);
Tailwind
colors: {
  custom: {
    50: '#c06faa',
    500: '#a12987',
    950: '#000000',
  },
}
SCSS
$custom: #a12987;
$custom-light: #c06faa;
$custom-dark: #000000;
JSON
{
  "hex": "#a12987",
  "rgb": {
    "r": 161,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 313,
    "s": 59.406,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50229,
    "c": 0.18423,
    "h": 338.2
  },
  "luminance": 0.10912
}

Semantic roles & 50–950 ramp

primary
#A12987
secondary
#66C079
accent
#E36745
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A12987

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

Preview Lab → · Contrast checker → · Palette generator →

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