#A12E8A#A12E8A

#A12E8A is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.8% C 0.180 H 337.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#A12E8A
RGBrgb(161, 46, 138)
HSLhsl(312, 56%, 41%)
HSVhsv(312, 71%, 63%)
CMYKcmyk(0%, 71.4%, 14.3%, 36.9%)
CIE-LABlab(40.19, 56.48, -25.86)
CIE-LCHlch(40.19, 62.12, 335.40°)
OKLaboklab(50.82% 0.1663 -0.0703)
OKLCHoklch(50.82% 0.18 337.1)
XYZxyz(20.2627, 11.3679, 25.1669)
Luminance0.1137 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12E8A #2EA145
analogous
#7E2EA1 #A12E8A #A12E50
triadic
#A12E8A #8AA12E #2E8AA1
tetradic
#A12E8A #A17E2E #2EA145 #2E50A1
square
#A12E8A #A17E2E #2EA145 #2E50A1
split-complementary
#A12E8A #50A12E #2EA17E
monochromatic
#421338 #712061 #A12E8A #C943AE #D773C3

Accessibility & contrast

On white

6.42
#A12E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A12E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12E8A
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12E8A#FFFFFF#000000##FFFFFF
##A12E8A1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538D
Deuteranopia (green-blind)
#586587
Tritanopia (blue-blind)
#AA3558
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a12e8a;
/* rgb */ color: rgb(161, 46, 138);
/* oklch */ color: oklch(50.8% 0.180 337.1);
Tailwind
colors: {
  custom: {
    50: '#c071ac',
    500: '#a12e8a',
    950: '#000000',
  },
}
SCSS
$custom: #a12e8a;
$custom-light: #c071ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a12e8a",
  "rgb": {
    "r": 161,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 312,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50824,
    "c": 0.18049,
    "h": 337.1
  },
  "luminance": 0.11366
}

Semantic roles & 50–950 ramp

primary
#A12E8A
secondary
#6CBE7D
accent
#DF6749
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A12E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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