#A12E87#A12E87

#A12E87 is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.7% C 0.178 H 338.4°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#A12E87
RGBrgb(161, 46, 135)
HSLhsl(314, 56%, 41%)
HSVhsv(314, 71%, 63%)
CMYKcmyk(0%, 71.4%, 16.1%, 36.9%)
CIE-LABlab(40.05, 56.03, -24.24)
CIE-LCHlch(40.05, 61.05, 336.61°)
OKLaboklab(50.68% 0.1659 -0.0656)
OKLCHoklch(50.68% 0.178 338.4)
XYZxyz(20.0485, 11.2822, 24.0388)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12E87 #2EA148
analogous
#812EA1 #A12E87 #A12E4D
triadic
#A12E87 #87A12E #2E87A1
tetradic
#A12E87 #A1812E #2EA148 #2E4DA1
square
#A12E87 #A1812E #2EA148 #2E4DA1
split-complementary
#A12E87 #4DA12E #2EA181
monochromatic
#421337 #71205F #A12E87 #C943AB #D773C0

Accessibility & contrast

On white

6.45
#A12E87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A12E87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12E87
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12E87#FFFFFF#000000##FFFFFF
##A12E871.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33538A
Deuteranopia (green-blind)
#596584
Tritanopia (blue-blind)
#AA3357
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a12e87;
/* rgb */ color: rgb(161, 46, 135);
/* oklch */ color: oklch(50.7% 0.178 338.4);
Tailwind
colors: {
  custom: {
    50: '#c071aa',
    500: '#a12e87',
    950: '#000000',
  },
}
SCSS
$custom: #a12e87;
$custom-light: #c071aa;
$custom-dark: #000000;
JSON
{
  "hex": "#a12e87",
  "rgb": {
    "r": 161,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 313.565,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50675,
    "c": 0.17837,
    "h": 338.4
  },
  "luminance": 0.1128
}

Semantic roles & 50–950 ramp

primary
#A12E87
secondary
#6CBE7F
accent
#DF6B49
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A12E87

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

Preview Lab → · Contrast checker → · Palette generator →

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