#A12D8A#A12D8A

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

Color values

HEX#A12D8A
RGBrgb(161, 45, 138)
HSLhsl(312, 56%, 40%)
HSVhsv(312, 72%, 63%)
CMYKcmyk(0%, 72%, 14.3%, 36.9%)
CIE-LABlab(40.07, 56.84, -26.05)
CIE-LCHlch(40.07, 62.53, 335.37°)
OKLaboklab(50.73% 0.1673 -0.0708)
OKLCHoklch(50.73% 0.182 337.1)
XYZxyz(20.2241, 11.2907, 25.1540)
Luminance0.1129 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12D8A #2DA144
analogous
#7E2DA1 #A12D8A #A12D50
triadic
#A12D8A #8AA12D #2D8AA1
tetradic
#A12D8A #A17E2D #2DA144 #2D50A1
square
#A12D8A #A17E2D #2DA144 #2D50A1
split-complementary
#A12D8A #50A12D #2DA17E
monochromatic
#411238 #712061 #A12D8A #CA41AF #D771C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A12D8A#FFFFFF#000000##FFFFFF
##A12D8A1.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)
#30538D
Deuteranopia (green-blind)
#576587
Tritanopia (blue-blind)
#AA3458
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a12d8a;
/* rgb */ color: rgb(161, 45, 138);
/* oklch */ color: oklch(50.7% 0.182 337.1);
Tailwind
colors: {
  custom: {
    50: '#c071ac',
    500: '#a12d8a',
    950: '#000000',
  },
}
SCSS
$custom: #a12d8a;
$custom-light: #c071ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a12d8a",
  "rgb": {
    "r": 161,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 311.897,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50731,
    "c": 0.18169,
    "h": 337.1
  },
  "luminance": 0.11289
}

Semantic roles & 50–950 ramp

primary
#A12D8A
secondary
#6BBF7C
accent
#E06648
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A12D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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