#A12787#A12787

#A12787 is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.1% C 0.186 H 338.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#A12787
RGBrgb(161, 39, 135)
HSLhsl(313, 61%, 39%)
HSVhsv(313, 76%, 63%)
CMYKcmyk(0%, 75.8%, 16.1%, 36.9%)
CIE-LABlab(39.21, 58.43, -25.55)
CIE-LCHlch(39.21, 63.77, 336.38°)
OKLaboklab(50.06% 0.1731 -0.0693)
OKLCHoklch(50.06% 0.186 338.2)
XYZxyz(19.7971, 10.7793, 23.9550)
Luminance0.1078 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12787 #27A141
analogous
#7E27A1 #A12787 #A1274A
triadic
#A12787 #87A127 #2787A1
tetradic
#A12787 #A17E27 #27A141 #274AA1
square
#A12787 #A17E27 #27A141 #274AA1
split-complementary
#A12787 #4AA127 #27A17E
monochromatic
#3E0F34 #701B5E #A12787 #CE37AE #DA68C2

Accessibility & contrast

On white

6.66
#A12787 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#A12787 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12787
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12787#FFFFFF#000000##FFFFFF
##A127871.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D508A
Deuteranopia (green-blind)
#566384
Tritanopia (blue-blind)
#AA2D54
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a12787;
/* rgb */ color: rgb(161, 39, 135);
/* oklch */ color: oklch(50.1% 0.186 338.2);
Tailwind
colors: {
  custom: {
    50: '#c16eaa',
    500: '#a12787',
    950: '#000000',
  },
}
SCSS
$custom: #a12787;
$custom-light: #c16eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#a12787",
  "rgb": {
    "r": 161,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 312.787,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50063,
    "c": 0.18643,
    "h": 338.2
  },
  "luminance": 0.10777
}

Semantic roles & 50–950 ramp

primary
#A12787
secondary
#63C077
accent
#E46644
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A12787

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

Preview Lab → · Contrast checker → · Palette generator →

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